Skip to content
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

[WIP] Calcite upgrade 1.33 #5196

Draft
wants to merge 73 commits into
base: master
Choose a base branch
from

Conversation

soumyakanti3578
Copy link
Contributor

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

Is the change a dependency upgrade?

How was this patch tested?

soumyakanti3578 and others added 29 commits June 5, 2024 18:47
… BETWEEN, and handle Sargs with nullAs TRUE or FALSE
We cannot create a RexNode with BETWEEN anymore. We have to use
makeBetween method for it. Also, there's no provision to create
a NOT BETWEEN, so had to add a method for it in TestFilterSelectivityEstimator.java

Also removed the test testComputeRangePredicateSelectivityBetweenLeftLowerThanRight
as we cannot create a BETWEEN where left is higher than right (although the name of
the test suggests otherwise). BETWEEN with left lower than right is tested with
testComputeRangePredicateSelectivityBetween
RexSimplify can sometimes wrap a RexCall in a CAST, which is unnecesary.
One example of this is lateral_view_outer.q, which failed because of
this.

Tested with:
mvn test -pl itests/qtest -Pitests -Dtest=TestMiniLlapLocalCliDriver -Dtest.output.overwrite=true -Dqfile="lateral_view_outer.q"
The plans change because RexBuilder#toComparable doesn't support
CASTs, which means that we cannot create a SEARCH operator and
thus INs are getting converted to ORs of EQUALS
This was failing because during logical planning key*1 is getting reduced to key in 1.33,
whereas it was not reduced in 1.25. Changing it to key*2 will stop the
reduction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants