-
Notifications
You must be signed in to change notification settings - Fork 174
[Enhancement] Add error handling for known limitation of sql JOIN
#4344
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
[Enhancement] Add error handling for known limitation of sql JOIN
#4344
Conversation
JOIN
JOIN
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.
A few suggestions -- I think this could be designed better if changing JoinSelect
doesn't cause cascading breakage, otherwise this approach is fine.
legacy/src/main/java/org/opensearch/sql/legacy/parser/SqlParser.java
Outdated
Show resolved
Hide resolved
legacy/src/main/java/org/opensearch/sql/legacy/parser/SqlParser.java
Outdated
Show resolved
Hide resolved
legacy/src/test/java/org/opensearch/sql/legacy/unittest/parser/SqlParserTest.java
Outdated
Show resolved
Hide resolved
legacy/src/test/java/org/opensearch/sql/legacy/unittest/parser/SqlParserTest.java
Outdated
Show resolved
Hide resolved
legacy/src/test/java/org/opensearch/sql/legacy/unittest/parser/SqlParserTest.java
Outdated
Show resolved
Hide resolved
legacy/src/main/java/org/opensearch/sql/legacy/domain/JoinSelect.java
Outdated
Show resolved
Hide resolved
legacy/src/main/java/org/opensearch/sql/legacy/antlr/visitor/AntlrSqlParseTreeVisitor.java
Outdated
Show resolved
Hide resolved
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.
Did you remove your test accidentally? I don't see any UT or IT now.
Added the new tests in |
if (ctx.tableSource().size() > 1) { | ||
return true; | ||
} | ||
|
||
for (int i = 0; i < ctx.tableSource().size(); i++) { | ||
Boolean hasJoinInTableSource = visit(ctx.tableSource(i)); | ||
if (hasJoinInTableSource != null && hasJoinInTableSource) { | ||
return true; | ||
} | ||
} | ||
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.
what's this trying to check?
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.
transferring some offline communication with @dai-chen here: we should limit the scope of this for only check the explicit join only - so removed this section.
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
Signed-off-by: Jialiang Liang <[email protected]>
9240c00
to
1634610
Compare
#4378 is failing at the same |
Failures exist in main and are only with recently added tests, think this is ok to merge |
Signed-off-by: Jialiang Liang [email protected]
Description
Better error handling for known limitation of sql JOIN
example:
Related Issues
JOIN
query limitation #4058Check List
--signoff
or-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.