Weijun-H commented on code in PR #9086:
URL: https://github.com/apache/arrow-rs/pull/9086#discussion_r2678964987
##########
arrow-json/src/reader/struct_array.rs:
##########
@@ -21,13 +21,16 @@ use arrow_array::builder::BooleanBufferBuilder;
use arrow_buffer::buffer::NullBuffer;
use arrow_data::{ArrayData, ArrayDataBuilder};
use arrow_schema::{ArrowError, DataType, Fields};
+use std::collections::HashMap;
pub struct StructArrayDecoder {
data_type: DataType,
decoders: Vec<Box<dyn ArrayDecoder>>,
strict_mode: bool,
is_nullable: bool,
struct_mode: StructMode,
+ field_name_to_index: Option<HashMap<String, usize>>,
+ child_pos: Vec<u32>,
Review Comment:
renamed and commented in
https://github.com/apache/arrow-rs/pull/9086/commits/df9e710136015ead727c350d074a423a83478b5b
--
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]