-
Couldn't load subscription status.
- Fork 176
Implement ppl scalar subquery command with Calcite #3392
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
Implement ppl scalar subquery command with Calcite #3392
Conversation
Signed-off-by: Lantao Jin <ltjin@amazon.com>
| if (expr instanceof Compare c) { | ||
| return containsScalarSubquery(c.getLeft()) || containsScalarSubquery(c.getRight()); | ||
| } | ||
| return false; |
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.
Should we support more cases than Not, Let and Compare?
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.
Sure, addressed in latest commit, please check it again
Signed-off-by: Lantao Jin <ltjin@amazon.com>
|
|
||
| private boolean containsExistsSubquery(Object condition) { | ||
| if (condition instanceof ExistsSubquery) { | ||
| private boolean containsExistsSubquery(Node expr) { |
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.
How about combining this 2 flags together? Will we use them separately in specific cases?
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.
done
Signed-off-by: Lantao Jin <ltjin@amazon.com>
|
Merging to dev branch to unblock others, cc @penghuo to async review. |
a07c2cd
into
opensearch-project:feature/calcite-engine
…t#3392) * Implement ppl scalar subquery command with Calcite Signed-off-by: Lantao Jin <ltjin@amazon.com> * more general subquery checker Signed-off-by: Lantao Jin <ltjin@amazon.com> * support correlated IN subquery Signed-off-by: Lantao Jin <ltjin@amazon.com> --------- Signed-off-by: Lantao Jin <ltjin@amazon.com>
* Implement ppl scalar subquery command with Calcite Signed-off-by: Lantao Jin <ltjin@amazon.com> * more general subquery checker Signed-off-by: Lantao Jin <ltjin@amazon.com> * support correlated IN subquery Signed-off-by: Lantao Jin <ltjin@amazon.com> --------- Signed-off-by: Lantao Jin <ltjin@amazon.com> Signed-off-by: xinyual <xinyual@amazon.com>
Description
Core Syntax: Implement ppl scalar subquery command with Calcite
All unit tests in
ppl/src/test/java/org/opensearch/sql/ppl/calcitesucceed in local./gradlew :integ-test:integTest --tests '*Calcite*IT'succeed in localRelated Issues
Resolves #3361
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.