-
Notifications
You must be signed in to change notification settings - Fork 139
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
Bug Fixes for minor issues with SQL PIT refactor #3045
Conversation
legacy/src/main/java/org/opensearch/sql/legacy/executor/join/ElasticJoinExecutor.java
Show resolved
Hide resolved
if (queryAction.getSqlRequest().fetchSize() == 0 | ||
|| searchResponse.getHits().getTotalHits().value | ||
< queryAction.getSqlRequest().fetchSize()) { |
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.
No test cover this?
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.
I know we have IT to cover legacy part of the code but I don't see existing test file to cover UT for this class. I've created one and added UT for this function.
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.
Thanks for adding the test! Could you test API behavior instead of internal impl in a private method? I see execute API with DefaultQueryAction
can cover your changes?
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, I need to get this one merged and can look into this as follow-up.
Signed-off-by: Manasvini B S <[email protected]>
8bebc36
to
90ba952
Compare
Signed-off-by: Manasvini B S <[email protected]> (cherry picked from commit ec5c3b7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Issue found during E2E testing:
Reproducible if you force the OpenSearch client to throw an exception while executing a join.
After fix:
Reproducible by specifying a "size" parameter in the request body in place of "fetch_size".
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.