forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-37845: [Go][Parquet] Check the number of logical fields inst…
…ead of physical columns (apache#37846) ### Rationale for this change This makes it so trying to read with a column chunk reader consistently returns an error if the index is outside the bounds of the logical fields (currently it panics in some cases and returns an error in others). ### What changes are included in this PR? This makes it so the column chunk reader checks the number of logical fields instead of the number of physical columns when checking if an index is out of range. ### Are these changes tested? The new test will panics without the accompanying code change. ### Are there any user-facing changes? Applications that used to panic will now have an error to handle instead. * Closes: apache#37845 Authored-by: Tim Schaub <[email protected]> Signed-off-by: Matt Topol <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters