Upgrade Calcite to 1.30 and adapt it for Kylin #319
Closed
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.
For SDK dialect conversion
Calcite 1.30 changed Rexcall operator from SqlCaseOperator to SqlPostfixOperator in RelOptUtil#isDistinctFromInternal
Calcite 1.30 remove EquiJoinInfo and NonEquiJoinInfo, but we need rexbuilder
Calcite 1.30 implement CHAR function
Fallback the logic of the simplification condition to version 1.16, otherwise it may lead to a failure to prune partitions
Revert "Fallback the logic of the simplification condition to version 1.16, otherwise it may lead to a failure to prune partitions"
This reverts commit 27f1a28.
[Follow up] Fallback the logic of the simplification condition to version 1.16, otherwise it may lead to a failure to prune partitions
Refer to KE-36291 for an adapted method to simplify the filter condition
Refer to AL-5295 fix the ut about CharNColumnTest#testCharNColumn
Calcite 1.30 fix about SumCaseWhenFunctionRule and CountDistinctCaseWhenFunctionRule
[Follow up] Fix ProjectRel replacement and old agg replacement caused by RelBuilder#aggregate method
Roll back Calcite's computeDigest and simplifyCase logic from previous versions to ensure correct matching of Kylin models
[Follow up] Fix the way digest is calculated, delete the previous logic
Fix exception in Calcite 1.30 where data type conversion affected logical plan changes
Fix with Sort optimize and Trim function
Revert "Calcite 1.30 implement CHAR function"
This reverts commit 0e1f6b0.
[CALCITE-5241] Implement CHAR function for MySQL and Spark, also JDBC '{fn CHAR(n)}'
Close apache#2878
Debug for Calcite deploy
Calcite 1.30 don't keep the precision of BigDecimal, add scale to fix exception
Fix SqlBasicCall's Deep Copy Logic Raises Rule Optimization Exception and TDVT test
Change kap-external-guava20 to kylin-external-guava30 and package name
Remove the default Unicode operation on the quoteStringLiteral function in Calcite 1.30