tustvold commented on code in PR #4052:
URL: https://github.com/apache/arrow-rs/pull/4052#discussion_r1162899706
##########
arrow-json/src/reader/mod.rs:
##########
@@ -554,14 +556,8 @@ impl RawDecoder {
assert_eq!(decoded.null_count(), 0);
assert_eq!(decoded.len(), pos.len());
- // Clear out buffer
- let columns = decoded
- .child_data()
- .iter()
- .map(|x| make_array(x.clone()))
- .collect();
-
- let batch = RecordBatch::try_new(self.schema.clone(), columns)?;
+ let batch = RecordBatch::from(StructArray::from(decoded))
Review Comment:
This is the fix for #4053
--
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]