forked from apache/datafusion
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add value tracking to ConstExpr for improved union optimization #47
Closed
gokselk
wants to merge
26
commits into
synnada-ai:apache_main
from
gokselk:feature/const-expr-value-tracking
Closed
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
43a16c9
Add value tracking to ConstExpr for improved union optimization
gokselk 8549b4f
Update PartialEq impl
gokselk ca97df5
Minor change
gokselk 1ae6701
Add docstring for ConstExpr value
gokselk c9b4869
Improve constant propagation across union partitions
gokselk 5a1838e
Add assertion for across_partitions
gokselk 8e773c3
fix fmt
berkaysynnada f876889
Update properties.rs
berkaysynnada f093648
Remove redundant constant removal loop
gokselk a3bcfa8
Remove unnecessary mut
gokselk f370b82
Set across_partitions=true when both sides are constant
gokselk dc00147
Extract and use constant values in filter expressions
gokselk 16a7de6
Add initial SLT for constant value tracking across UNION ALL
gokselk b3bc40d
Assign values to ConstExpr where possible
gokselk d007067
Revert "Set across_partitions=true when both sides are constant"
gokselk 0292f32
Temporarily take value from literal
gokselk f737c65
Lint fixes
gokselk b974d89
Cargo fmt
gokselk 57913f8
Add get_expr_constant_value
gokselk 1917c0e
Make `with_value()` accept optional value
gokselk c72f19a
Add todo
gokselk 3afd745
Merge remote-tracking branch 'upstream/main' into feature/const-expr-…
gokselk 5c1a8b8
Move test to union.slt
gokselk 25e95f4
Fix changed slt after merge
gokselk bee8667
Simplify constexpr
berkaysynnada 6cccb57
Update properties.rs
berkaysynnada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can't we auto-derive PartialEq for ConstantExpr's?
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.
Not possible due to a Rust bug, details here: apache#13196