Repository navigation
Migrate standalone integration tests to remote tests - #3778
Merged
Merged
Conversation
Additionally: - Migrate CalcitePPLBasicIT to remote ITs - Delete CalcitePPLBasicPushdownIT since the remote ITs enable pushdown by default Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Xinyu Hao <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
migrate calcite IT and delete related pushdown IT
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Xinyu Hao <[email protected]>
Add pushdown IT button
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
…d by default Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
requested review from
MaxKsyunz,
Swiddis,
YANG-DB,
dai-chen,
derek-ho,
joshuali925,
kavithacm,
mengweieric,
penghuo,
ps48 and
seankao-az
as code owners
June 16, 2025 07:17
…to comparison involves windows new lines Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
…' responses Signed-off-by: Yuanchun Shen <[email protected]>
…te tests' responses" This reverts commit 812fd0d. Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
yuancu
marked this pull request as draft
June 17, 2025 03:01
yuancu
marked this pull request as ready for review
June 17, 2025 03:40
LantaoJin
reviewed
Jun 17, 2025
| schema("avg_price", "double"), | ||
| schema("avg_disc", "double"), | ||
| schema("count_order", "long")); | ||
| schema("count_order", "bigint")); |
Member
There was a problem hiding this comment.
Can TpchIT be migrated to remote IT?
Signed-off-by: Yuanchun Shen <[email protected]>
Signed-off-by: Yuanchun Shen <[email protected]>
qianheng-aws
approved these changes
Jun 17, 2025
LantaoJin
approved these changes
Jun 17, 2025
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/sql/backport-2.19-dev 2.19-dev
# Navigate to the new working tree
pushd ../.worktrees/sql/backport-2.19-dev
# Create a new branch
git switch --create backport/backport-3778-to-2.19-dev
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 918c153ca99565e304364a5765f950aab86df64a
# Push it to GitHub
git push --set-upstream origin backport/backport-3778-to-2.19-dev
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/sql/backport-2.19-devThen, create a pull request where the |
Member
|
@yuancu could you help to backport it to 2.19-dev |
Collaborator
Author
Sure |
yuancu
added a commit
to yuancu/sql-plugin
that referenced
this pull request
Jun 18, 2025
…ect#3778) * Use PPL_SPEC in standalone ITs Additionally: - Migrate CalcitePPLBasicIT to remote ITs - Delete CalcitePPLBasicPushdownIT since the remote ITs enable pushdown by default Signed-off-by: Yuanchun Shen <[email protected]> * Migrate array, aggregation, appendcol, and datetime ITs to remote Signed-off-by: Yuanchun Shen <[email protected]> * Migrate case, datetime, condition, cryptographic function ITs Signed-off-by: Yuanchun Shen <[email protected]> * Fix return types in CalcitePPLTpchIT Signed-off-by: Yuanchun Shen <[email protected]> * migrate calcite IT and delete related pushdown IT Signed-off-by: Xinyu Hao <[email protected]> * Temporarily move datetime ITs back to standalone mode Signed-off-by: Yuanchun Shen <[email protected]> * WIP: trying to enbale no-pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * add pushdown IT button Signed-off-by: Xinyu Hao <[email protected]> * Fix remote ITs Signed-off-by: Yuanchun Shen <[email protected]> * Enable no pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * Change pushdown settings only when necessary (fixing CalciteSettingsIT) Signed-off-by: Yuanchun Shen <[email protected]> * Fix sum null tests with and without pushdown Signed-off-by: Yuanchun Shen <[email protected]> * Update pushdown with transient flag Signed-off-by: Yuanchun Shen <[email protected]> * Ignore IP comparison and explain ITs in CalciteNoPushdownIT Signed-off-by: Yuanchun Shen <[email protected]> * Delete CalcitePushdownIT since all tests are run with pushdown enabled by default Signed-off-by: Yuanchun Shen <[email protected]> * Restore pushdown config after CalciteNoPushdownIT class Signed-off-by: Yuanchun Shen <[email protected]> * Move expected explain strings to files to circurmvent issues related to comparison involves windows new lines Signed-off-by: Yuanchun Shen <[email protected]> * Throw narrower exceptions where it uses loadFromFile Signed-off-by: Yuanchun Shen <[email protected]> * Replace window line enddings with unix line enddings for remote tests' responses Signed-off-by: Yuanchun Shen <[email protected]> * Revert "Replace window line enddings with unix line enddings for remote tests' responses" This reverts commit 812fd0d. Signed-off-by: Yuanchun Shen <[email protected]> * Use explainQueryToString for explain ITs Signed-off-by: Yuanchun Shen <[email protected]> * Use executeWithReplace for explain command variants Signed-off-by: Yuanchun Shen <[email protected]> * Migrate CalcitePPLTpchIT to remote test Signed-off-by: Yuanchun Shen <[email protected]> * Replace windows carriages with spaces when sanitizing queries to explain Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: Xinyu Hao <[email protected]> Co-authored-by: Xinyu Hao <[email protected]> (cherry picked from commit 918c153)
3 of 7 tasks
yuancu
added a commit
to yuancu/sql-plugin
that referenced
this pull request
Jun 18, 2025
…ect#3778) * Use PPL_SPEC in standalone ITs Additionally: - Migrate CalcitePPLBasicIT to remote ITs - Delete CalcitePPLBasicPushdownIT since the remote ITs enable pushdown by default Signed-off-by: Yuanchun Shen <[email protected]> * Migrate array, aggregation, appendcol, and datetime ITs to remote Signed-off-by: Yuanchun Shen <[email protected]> * Migrate case, datetime, condition, cryptographic function ITs Signed-off-by: Yuanchun Shen <[email protected]> * Fix return types in CalcitePPLTpchIT Signed-off-by: Yuanchun Shen <[email protected]> * migrate calcite IT and delete related pushdown IT Signed-off-by: Xinyu Hao <[email protected]> * Temporarily move datetime ITs back to standalone mode Signed-off-by: Yuanchun Shen <[email protected]> * WIP: trying to enbale no-pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * add pushdown IT button Signed-off-by: Xinyu Hao <[email protected]> * Fix remote ITs Signed-off-by: Yuanchun Shen <[email protected]> * Enable no pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * Change pushdown settings only when necessary (fixing CalciteSettingsIT) Signed-off-by: Yuanchun Shen <[email protected]> * Fix sum null tests with and without pushdown Signed-off-by: Yuanchun Shen <[email protected]> * Update pushdown with transient flag Signed-off-by: Yuanchun Shen <[email protected]> * Ignore IP comparison and explain ITs in CalciteNoPushdownIT Signed-off-by: Yuanchun Shen <[email protected]> * Delete CalcitePushdownIT since all tests are run with pushdown enabled by default Signed-off-by: Yuanchun Shen <[email protected]> * Restore pushdown config after CalciteNoPushdownIT class Signed-off-by: Yuanchun Shen <[email protected]> * Move expected explain strings to files to circurmvent issues related to comparison involves windows new lines Signed-off-by: Yuanchun Shen <[email protected]> * Throw narrower exceptions where it uses loadFromFile Signed-off-by: Yuanchun Shen <[email protected]> * Replace window line enddings with unix line enddings for remote tests' responses Signed-off-by: Yuanchun Shen <[email protected]> * Revert "Replace window line enddings with unix line enddings for remote tests' responses" This reverts commit 812fd0d. Signed-off-by: Yuanchun Shen <[email protected]> * Use explainQueryToString for explain ITs Signed-off-by: Yuanchun Shen <[email protected]> * Use executeWithReplace for explain command variants Signed-off-by: Yuanchun Shen <[email protected]> * Migrate CalcitePPLTpchIT to remote test Signed-off-by: Yuanchun Shen <[email protected]> * Replace windows carriages with spaces when sanitizing queries to explain Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: Xinyu Hao <[email protected]> Co-authored-by: Xinyu Hao <[email protected]> (cherry picked from commit 918c153)
yuancu
added a commit
to yuancu/sql-plugin
that referenced
this pull request
Jun 18, 2025
…ect#3778) * Use PPL_SPEC in standalone ITs Additionally: - Migrate CalcitePPLBasicIT to remote ITs - Delete CalcitePPLBasicPushdownIT since the remote ITs enable pushdown by default Signed-off-by: Yuanchun Shen <[email protected]> * Migrate array, aggregation, appendcol, and datetime ITs to remote Signed-off-by: Yuanchun Shen <[email protected]> * Migrate case, datetime, condition, cryptographic function ITs Signed-off-by: Yuanchun Shen <[email protected]> * Fix return types in CalcitePPLTpchIT Signed-off-by: Yuanchun Shen <[email protected]> * migrate calcite IT and delete related pushdown IT Signed-off-by: Xinyu Hao <[email protected]> * Temporarily move datetime ITs back to standalone mode Signed-off-by: Yuanchun Shen <[email protected]> * WIP: trying to enbale no-pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * add pushdown IT button Signed-off-by: Xinyu Hao <[email protected]> * Fix remote ITs Signed-off-by: Yuanchun Shen <[email protected]> * Enable no pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * Change pushdown settings only when necessary (fixing CalciteSettingsIT) Signed-off-by: Yuanchun Shen <[email protected]> * Fix sum null tests with and without pushdown Signed-off-by: Yuanchun Shen <[email protected]> * Update pushdown with transient flag Signed-off-by: Yuanchun Shen <[email protected]> * Ignore IP comparison and explain ITs in CalciteNoPushdownIT Signed-off-by: Yuanchun Shen <[email protected]> * Delete CalcitePushdownIT since all tests are run with pushdown enabled by default Signed-off-by: Yuanchun Shen <[email protected]> * Restore pushdown config after CalciteNoPushdownIT class Signed-off-by: Yuanchun Shen <[email protected]> * Move expected explain strings to files to circurmvent issues related to comparison involves windows new lines Signed-off-by: Yuanchun Shen <[email protected]> * Throw narrower exceptions where it uses loadFromFile Signed-off-by: Yuanchun Shen <[email protected]> * Replace window line enddings with unix line enddings for remote tests' responses Signed-off-by: Yuanchun Shen <[email protected]> * Revert "Replace window line enddings with unix line enddings for remote tests' responses" This reverts commit 812fd0d. Signed-off-by: Yuanchun Shen <[email protected]> * Use explainQueryToString for explain ITs Signed-off-by: Yuanchun Shen <[email protected]> * Use executeWithReplace for explain command variants Signed-off-by: Yuanchun Shen <[email protected]> * Migrate CalcitePPLTpchIT to remote test Signed-off-by: Yuanchun Shen <[email protected]> * Replace windows carriages with spaces when sanitizing queries to explain Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: Xinyu Hao <[email protected]> Co-authored-by: Xinyu Hao <[email protected]> (cherry picked from commit 918c153)
penghuo
pushed a commit
that referenced
this pull request
Jun 18, 2025
…sts (#3790) * Migrate standalone integration tests to remote tests (#3778) * Use PPL_SPEC in standalone ITs Additionally: - Migrate CalcitePPLBasicIT to remote ITs - Delete CalcitePPLBasicPushdownIT since the remote ITs enable pushdown by default Signed-off-by: Yuanchun Shen <[email protected]> * Migrate array, aggregation, appendcol, and datetime ITs to remote Signed-off-by: Yuanchun Shen <[email protected]> * Migrate case, datetime, condition, cryptographic function ITs Signed-off-by: Yuanchun Shen <[email protected]> * Fix return types in CalcitePPLTpchIT Signed-off-by: Yuanchun Shen <[email protected]> * migrate calcite IT and delete related pushdown IT Signed-off-by: Xinyu Hao <[email protected]> * Temporarily move datetime ITs back to standalone mode Signed-off-by: Yuanchun Shen <[email protected]> * WIP: trying to enbale no-pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * add pushdown IT button Signed-off-by: Xinyu Hao <[email protected]> * Fix remote ITs Signed-off-by: Yuanchun Shen <[email protected]> * Enable no pushdown tests Signed-off-by: Yuanchun Shen <[email protected]> * Change pushdown settings only when necessary (fixing CalciteSettingsIT) Signed-off-by: Yuanchun Shen <[email protected]> * Fix sum null tests with and without pushdown Signed-off-by: Yuanchun Shen <[email protected]> * Update pushdown with transient flag Signed-off-by: Yuanchun Shen <[email protected]> * Ignore IP comparison and explain ITs in CalciteNoPushdownIT Signed-off-by: Yuanchun Shen <[email protected]> * Delete CalcitePushdownIT since all tests are run with pushdown enabled by default Signed-off-by: Yuanchun Shen <[email protected]> * Restore pushdown config after CalciteNoPushdownIT class Signed-off-by: Yuanchun Shen <[email protected]> * Move expected explain strings to files to circurmvent issues related to comparison involves windows new lines Signed-off-by: Yuanchun Shen <[email protected]> * Throw narrower exceptions where it uses loadFromFile Signed-off-by: Yuanchun Shen <[email protected]> * Replace window line enddings with unix line enddings for remote tests' responses Signed-off-by: Yuanchun Shen <[email protected]> * Revert "Replace window line enddings with unix line enddings for remote tests' responses" This reverts commit 812fd0d. Signed-off-by: Yuanchun Shen <[email protected]> * Use explainQueryToString for explain ITs Signed-off-by: Yuanchun Shen <[email protected]> * Use executeWithReplace for explain command variants Signed-off-by: Yuanchun Shen <[email protected]> * Migrate CalcitePPLTpchIT to remote test Signed-off-by: Yuanchun Shen <[email protected]> * Replace windows carriages with spaces when sanitizing queries to explain Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: Xinyu Hao <[email protected]> Co-authored-by: Xinyu Hao <[email protected]> (cherry picked from commit 918c153) * Fix fields comparison in CalcitePPLRenameIT Signed-off-by: Yuanchun Shen <[email protected]> --------- Signed-off-by: Yuanchun Shen <[email protected]> Signed-off-by: Xinyu Hao <[email protected]> Co-authored-by: Xinyu Hao <[email protected]>
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
Migrate standalone integration tests to remote tests to better align with production environments.
Additionally, I created a test suite called
CalciteNoPushdownIT. It will run all remote tests without pushdown enabled. This replaces original IT classes with names likeCalcite***PushdownIT.Implementation notes:
CalcitePPLDateTimeBuiltinFunctionITis not migrated since the timezone and locale of the cluster started locally differ from the settings of the test environment. E.g. I can't make-Dtests.locale=my-Mymr-MM -Dtests.timezone=PSTtake effect on the local opensearch cluster. (To fix in the future)CalciteExplainITis not added to no-pushdown tests yet. It requires corresponding plans with Calcite without pushdown.CalciteIPComparisonITis not added to no-pushdown tests yet. It requires fixing IP comparison with Calcite [FEATURE] Support comparing IP values with Calcite #3776Related Issues
Resolves #3777
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.