friendlymatthew commented on code in PR #9000:
URL: https://github.com/apache/arrow-rs/pull/9000#discussion_r2646027379
##########
arrow-row/src/lib.rs:
##########
@@ -1951,11 +1956,26 @@ unsafe fn decode_column(
let child_array =
unsafe { converter.convert_raw(&mut sparse_data,
validate_utf8) }?;
+
+ // track bytes consumed for rows that belong to this
field
+ for (row_idx, child_row) in field_rows.iter() {
+ let remaining_len = sparse_data[*row_idx].len();
+ bytes_consumed[*row_idx] = 1 + child_row.len() -
remaining_len;
+ }
Review Comment:
I like it!
--
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]