HaoYang670 commented on issue #1799:
URL: https://github.com/apache/arrow-rs/issues/1799#issuecomment-1147387304

   > 
   ```rust
   pub struct ArrayData {
       /// The data type for this array data
       data_type: DataType,
   
       /// The number of elements in this array data
       len: usize,
   
       /// The number of null elements in this array data
       null_count: usize,
   
       /// The offset into this array data, in number of items
       offset: usize,
   
       /// The null bitmap. A `None` value for this indicates all values are 
non-null in
       /// this array.
       null_bitmap: Option<Bitmap>,
   
       /// The array data layout
       layout: ArrayDataLayout
   }
   ```
   It seems like that `ArrayData::data_type` is redundant because 
`ArrayData::layout` can also tell you the type of the array?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to