-
Notifications
You must be signed in to change notification settings - Fork 1.9k
remove type coercion in the binary physical expr #3396
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
Merged
alamb
merged 17 commits into
apache:master
from
liukun4515:remove_phy_coercion_#3387_#3388
Sep 24, 2022
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
818f642
remove type coercion binary from phy
liukun4515 c71db45
Merge remote-tracking branch 'upstream/master' into remove_phy_coerci…
liukun4515 8c38433
fix test case
liukun4515 3013e04
Merge remote-tracking branch 'upstream/master' into remove_phy_coerci…
liukun4515 cbe943b
revert the fix for #3387
liukun4515 863ac3f
Merge remote-tracking branch 'upstream/master' into remove_phy_coerci…
liukun4515 a6c6724
Merge remote-tracking branch 'upstream/master' into remove_phy_coerci…
liukun4515 e72a747
type coercion before simplify expression
liukun4515 0f7891d
complete remove the type coercion in the physical plan
liukun4515 7b0d87a
refactor
liukun4515 c409326
Merge remote-tracking branch 'upstream/master' into remove_phy_coerci…
liukun4515 4b1fa72
merge master
liukun4515 bb7f0ac
refactor
liukun4515 3062cd5
do type coercion in the simplify expression
liukun4515 01d1745
Add comments
alamb 6c2b91f
Merge remote-tracking branch 'apache/master' into remove_phy_coercion…
alamb 1a125ed
fix: fmt
alamb 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1834,11 +1834,11 @@ async fn aggregate_avg_add() -> Result<()> { | |
| assert_eq!(results.len(), 1); | ||
|
|
||
| let expected = vec![ | ||
| "+--------------+---------------------------+---------------------------+---------------------------+", | ||
| "| AVG(test.c1) | AVG(test.c1) + Float64(1) | AVG(test.c1) + Float64(2) | Float64(1) + AVG(test.c1) |", | ||
| "+--------------+---------------------------+---------------------------+---------------------------+", | ||
| "| 1.5 | 2.5 | 3.5 | 2.5 |", | ||
| "+--------------+---------------------------+---------------------------+---------------------------+", | ||
| "+--------------+-------------------------+-------------------------+-------------------------+", | ||
|
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. 👍 |
||
| "| AVG(test.c1) | AVG(test.c1) + Int64(1) | AVG(test.c1) + Int64(2) | Int64(1) + AVG(test.c1) |", | ||
| "+--------------+-------------------------+-------------------------+-------------------------+", | ||
| "| 1.5 | 2.5 | 3.5 | 2.5 |", | ||
| "+--------------+-------------------------+-------------------------+-------------------------+", | ||
| ]; | ||
| assert_batches_sorted_eq!(expected, &results); | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
👍
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.
it makes sense to me that we need to simplify expressons after coercion