alamb commented on code in PR #9270:
URL: https://github.com/apache/arrow-rs/pull/9270#discussion_r2729535970


##########
arrow-json/src/reader/struct_array.rs:
##########
@@ -81,28 +81,30 @@ pub struct StructArrayDecoder {
 impl StructArrayDecoder {
     pub fn new(
         ctx: &DecoderContext,
-        data_type: DataType,
+        data_type: &DataType,
         is_nullable: bool,
     ) -> Result<Self, ArrowError> {
-        let struct_mode = ctx.struct_mode();
-        let fields = struct_fields(&data_type);
-
-        // If this struct nullable, need to permit nullability in child array
-        // StructArrayDecoder::decode verifies that if the child is not 
nullable
-        // it doesn't contain any nulls not masked by its parent

Review Comment:
   thank you



-- 
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