srijithr03 commented on code in PR #10903:
URL: https://github.com/apache/arrow-rs/pull/10903#discussion_r3889015744
##########
arrow-csv/src/reader/records.rs:
##########
@@ -115,11 +160,12 @@ impl RecordDecoder {
// Try to read a record
loop {
+ let ends_bound = self.offsets_len + (self.num_columns -
self.current_field);
Review Comment:
Thanks for catching this. I’ve updated the `ends_bound` logic to preserve
the existing `ExtraFields::Error` behavior while keeping the bounded path for
`ExtraFields::Ignore`.
The default path now retains the exact field-count diagnostics, such as
`expected 2 got 3`, while `Ignore` still stops at the schema width and skips
the remaining fields.
--
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]