-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix RowNumberReader when not all row groups are selected
#8863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
3fbabe4
f0be36b
0bfc3c3
622bc19
c69d4d0
9dfd7c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -625,12 +625,11 @@ impl ArrowReaderOptions { | |
| pub fn with_virtual_columns(self, virtual_columns: Vec<FieldRef>) -> Self { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also made this comment in the original PR, but maybe we could change this to pub fn set_virtual_columns(&mut self, virtual_columns: Vec<FieldRef>) -> Result<()> {to avoid the panic. If we squeak this in before
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attaching a link for easier discussion: #8715 (comment) Not having an ability to chain seems a bit degrading, though users can just use I'm fine with changing to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I was upthumbing
Meaning I'd be on board with
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I agree that sounds better to me
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| // Validate that all fields are virtual columns | ||
| for field in &virtual_columns { | ||
| if !is_virtual_column(field) { | ||
| panic!( | ||
| "Field '{}' is not a virtual column. Virtual columns must have extension type names starting with 'arrow.virtual.'", | ||
| field.name() | ||
| ); | ||
| } | ||
| assert!( | ||
| is_virtual_column(field), | ||
| "Field '{}' is not a virtual column. Virtual columns must have extension type names starting with 'arrow.virtual.'", | ||
| field.name() | ||
| ); | ||
| } | ||
| Self { | ||
| virtual_columns, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nit, to simplify L68 below?