Repository navigation
Add explain ITs with Calcite without pushdown - #3786
Merged
Merged
Conversation
Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
requested review from
GumpacG,
LantaoJin,
MaxKsyunz,
Swiddis,
YANG-DB,
Yury-Fridlyand,
acarbonetto,
anirudha,
dai-chen,
derek-ho,
forestmvey,
joshuali925,
kavithacm,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
seankao-az and
ykmr1224
as code owners
June 17, 2025 13:44
dai-chen
reviewed
Jun 17, 2025
| private String loadExpectedPlan(String fileName) throws IOException { | ||
| String prefix; | ||
| if (isCalciteEnabled()) { | ||
| if (isPushdownEnabled()) { |
Collaborator
There was a problem hiding this comment.
In the future, just wonder in which case we may disable pushdown? Is this only for testing purpose?
Member
There was a problem hiding this comment.
For testing purpose, we need to confirm all operations running in Calcite could meet our expects. We wouldn't disable pushdown config. But all operators should work as expected without pushdown. For example, filter operator can be pushdown in normal. But it cannot be pushdown after join operator.
LantaoJin
previously approved these changes
Jun 18, 2025
qianheng-aws
previously approved these changes
Jul 1, 2025
Collaborator
|
@yuancu conflict |
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
marked this pull request as draft
July 1, 2025 10:06
Collaborator
Author
|
Will re-work on this after merging #3835 |
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
marked this pull request as ready for review
July 2, 2025 08:41
Collaborator
Author
|
The failed test case can be reproduced with the following command in the main branch: ./gradlew ':integ-test:yamlRestTest' --tests "org.opensearch.sql.rest.RestHandlerClientYamlTestSuiteIT.test {yaml=issues/3102/Prevent push down limit if the offset reach max_result_window}" -Dtests.seed=37CD9BA42072D18ENote that it can only be reproduced with the given seed. I haven't figured out what went wrong. Relevant issue: #3102 details
"Prevent push down limit if the offset reach max_result_window":
- do:
headers:
Content-Type: 'application/json'
ppl:
body:
query: 'source=test | head 1 from 1 '
- match: {"total": 1}
- match: {"schema": [{"name": "id", "type": "bigint"}]}
- match: {"datarows": [[2]]}
- do:
headers:
Content-Type: 'application/json'
ppl:
body:
query: 'source=test | head 2 | head 1 from 1 '
- match: { "total": 1 }
- match: { "schema": [ { "name": "id", "type": "bigint" } ] }
- match: { "datarows": [ [ 2 ] ] }
Details |
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
force-pushed
the
explain-no-pushdown
branch
from
July 10, 2025 07:58
6f7a2f3 to
bce9661
Compare
qianheng-aws
approved these changes
Jul 11, 2025
LantaoJin
approved these changes
Jul 11, 2025
opensearch-trigger-bot Bot
pushed a commit
that referenced
this pull request
Jul 11, 2025
* Add explain ITs with Calcite wihtout pushdown Signed-off-by: Yuanchun Shen <[email protected]> * Test explain sort with Calcite without push-down Signed-off-by: Yuanchun Shen <[email protected]> * Complete explain tests for no-pushdown cases Signed-off-by: Yuanchun Shen <[email protected]> * Test explain search without pushdown Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> (cherry picked from commit 9aaff7a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
qianheng-aws
pushed a commit
that referenced
this pull request
Jul 11, 2025
* Add explain ITs with Calcite wihtout pushdown * Test explain sort with Calcite without push-down * Complete explain tests for no-pushdown cases * Test explain search without pushdown --------- (cherry picked from commit 9aaff7a) Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add Integration tests for
explaincommand with pushdown disabled in CalciteRelated Issues
Resolves #3785
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.