-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support constraints in physical query planning #53
base: apache_main
Are you sure you want to change the base?
Support constraints in physical query planning #53
Conversation
9f3b41c
to
a680f87
Compare
42201f0
to
319f13f
Compare
319f13f
to
82361a7
Compare
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.
LGTM. Let's discuss the last items written down here. Then, we can upstream this PR.
@@ -254,10 +266,27 @@ impl FileScanConfig { | |||
self.file_schema.metadata().clone(), | |||
)); | |||
|
|||
let proj_indices = match &self.projection { | |||
Some(proj) => proj.to_vec(), | |||
None => (0..(self.file_schema.fields().len() |
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.
This check match &self.projection
has been done above, And also another similar check if self.projection.is_none()
exists. Perhaps we can refactor this function, starting with a match pattern on self.projection, wdyt?
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.
Took a different approach, deduplicated the code in 46b860f. Please let me know if this works as well.
940c330
to
05384e1
Compare
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?