lichuang commented on code in PR #9275:
URL: https://github.com/apache/arrow-rs/pull/9275#discussion_r2740508916


##########
arrow-row/src/list.rs:
##########
@@ -120,17 +120,35 @@ pub unsafe fn decode<O: OffsetSizeTrait>(
     let mut offsets = Vec::with_capacity(rows.len() + 1);
     offsets.push(O::usize_as(0));
 
+    // Check if child is Null type - if so, we need special handling
+    // to count elements correctly even when they decode to 0 bytes
+    let is_null_child = matches!(&field.data_type, DataType::List(f) if 
f.data_type() == &DataType::Null)

Review Comment:
   ok, i fix this problem in encode phase.



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