-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29641: Upgrade Calcite to 1.42.0 #6523
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
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
46cb44f
Bump Calcite version to 1.38, minor code adjustments:
rubenada 71f80e0
Use non-deprecated version of RexBuilder#makeAbstractCast in HiveSqlS…
rubenada dce6775
HiveHepExtractRelNodeRule: do the conversion using a shuttle, instead…
rubenada 8068e48
Update Calcite default charset system property (use UTF16 instead of …
rubenada 43ebfd1
In MaterializationView rules, we cannot use HiveHepExtractRelNodeRule…
rubenada af5c91f
Fix HiveRelFieldTrimmer#rewriteGBConstantKeys: the condition on its j…
rubenada 2084de3
Add asm dependency to parent pom, trying to fix the javadoc error see…
rubenada eb9fe81
Adjust test plans due to
rubenada b78ca04
Bump Calcite to 1.42 + required code adjustments:
rubenada f5bbac2
Adjust test plans due to change in representation of floating point v…
rubenada 5b26a90
In CalcitePlanner genFilterRelNode: simplify filter condition before …
rubenada dd02a16
Move fix from previous commit as earlier as possible (incorrect binar…
rubenada b047ec3
Avoid incorrect comparison ($snapshotIdInputRef <= NULL) in HiveAugme…
rubenada adf3d9f
minor: adjust test plan, use ORDER BY ... <ordinal> instead or repeat…
rubenada aab25a3
Identify NOT BETWEEN expression in SearchTransformer to avoid plan ch…
rubenada 8e60574
Previous change (identify NOT BETWEEN expression in SearchTransformer…
rubenada 90be70b
Test adjustments: rowcount changes in TestExplainCBOFormattedCliDrive…
rubenada 57d3e2d
Bump maven.shade.plugin.version to 3.6.2 to resolve druid-handler jav…
rubenada 172520b
Override HiveTypeSystemImpl#deriveDecimalDivideType because CALCITE-6…
rubenada 2f043ff
Add ASM dependency 9.9.1 for druid handler shade plugin (still trying…
rubenada 7d1df93
Adjust test output stats_histogram.q.out
rubenada 3d3c0c7
Rever changes on Jenkinsfile + Fix druid-handler shade ASM error by r…
rubenada 7098526
Adjust test files: condition reordering, IS [NOT] NULL simplification…
rubenada c01d8e9
Due to "[CALCITE-6044] RelMetadataQuery should regard single-row rela…
rubenada 323a62f
Test adjustments (input8.q.out, lineage2.q.out, lineage3.q.out, ppd_c…
rubenada bdfe1ae
Adjust test file cross_prod_1.q.out: Equivalent plan; expression "A.v…
rubenada 31b3ec8
Adjust test file vector_aggregate_9.q.out: Decima cast is not removed.
rubenada 29a1e0d
Test adjustment vector_coalesce.q.out: equivalent plan, with some IS_…
rubenada 7b4527e
Test adjustment vector_interval_2.q.out: simplified predicates
rubenada 2b5231e
Test adjustment join45.q.out, join47.q.out, mapjoin47.q, smb_mapjoin4…
rubenada 947fddb
Test adjustment join46.q.out, mapjoin46.q.out, vectorized_join46.q.ou…
rubenada 8b4fbf5
Test adjustment iceberg_bucket_map_join_1.q.out:
rubenada 82997f6
Update tests files:
rubenada cc4115a
Add org.jooq:joou-java-6 to ql/pom.xml to resolve init-metastore CI e…
rubenada 7d876e2
Add Calcite bug reference
rubenada fea0fca
Review:
rubenada ed6c635
Fix TestHivePointLookupOptimizerRule
rubenada d470bb6
minor
rubenada c26be48
Alter slightly the DISTINCT-version queries to restore back the origi…
rubenada 8f01d60
Update comment
rubenada e2a2021
Test
rubenada 53833fe
Revert test
rubenada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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.
The new plan is equivalent but it seems that the simplification didn't lead to a significant improvement. The simplification here seems to have introduced a new
Filter[col0 is not null]higher up so at the end of the day the number of comparisons remains the same.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.
Will this be restored with CALCITE-7722?
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.
I don't think so. This is not an occurrence of point 3 (which will be mitigated with CALCITE-7722), but rather point 1.
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.
I am not sure if point 1 and point 3 are fully distinct. I suspect that both are due to different simplifications.