Extend V2 SQL parser with JOIN for unified query path#5446
Conversation
PR Reviewer Guide 🔍(Review updated until commit 92004cf)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 92004cf Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit f1084b4
Suggestions up to commit 42138ba
Suggestions up to commit 37072eb
|
37072eb to
42138ba
Compare
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 42138ba.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit 42138ba |
42138ba to
f1084b4
Compare
|
Persistent review updated to latest commit f1084b4 |
Extend the V2 ANTLR grammar with JOIN clause rules (INNER/LEFT/RIGHT/ CROSS) and add ExtendedAstBuilder in SqlV2QueryParser to produce Join AST nodes for the Calcite-based unified query path. The base AstBuilder throws SyntaxCheckException to preserve legacy engine fallback. A semantic predicate prevents LEFT/RIGHT from being consumed as implicit table aliases when followed by JOIN. Signed-off-by: Chen Dai <daichen@amazon.com>
f1084b4 to
92004cf
Compare
|
Persistent review updated to latest commit 92004cf |
Description
Extend the V2 SQL ANTLR grammar and add
ExtendedAstBuilderto supportJOIN(INNER/LEFT/RIGHT/CROSSsupported by OpenSearch SQL today) in the unified Calcite-based query path. The baseAstBuildercontinues to throwSyntaxCheckExceptionfor these statements, preserving the legacy engine fallback in production.Notes
LogicalSystemLimitnoise in logical plansLEFT/RIGHTfrom being consumed as implicit table aliases when followed by JOIN.Planned PRs
CalciteRelNodeVisitorissues identified during V2 AST integrationRelated Issues
Part of #5248
Check List
--signoffor-s.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.