Skip to content

[Backport 2.19-dev] Migrate standalone integration tests to remote tests - #3790

Merged
penghuo merged 2 commits into
opensearch-project:2.19-devfrom
yuancu:backport/backport-3778-to-2.19-dev
Jun 18, 2025
Merged

penghuo merged 2 commits into
opensearch-project:2.19-devfrom
yuancu:backport/backport-3778-to-2.19-dev

Conversation

@yuancu

@yuancu yuancu commented Jun 18, 2025 •

Copy link
Copy Markdown
Collaborator

Description

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
  • Migrate array, aggregation, appendcol, and datetime ITs to remote

  • Migrate case, datetime, condition, cryptographic function ITs

  • Fix return types in CalcitePPLTpchIT

  • migrate calcite IT and delete related pushdown IT

  • Temporarily move datetime ITs back to standalone mode

  • WIP: trying to enbale no-pushdown tests

  • add pushdown IT button

  • Fix remote ITs

  • Enable no pushdown tests

  • Change pushdown settings only when necessary (fixing CalciteSettingsIT)

  • Fix sum null tests with and without pushdown

  • Update pushdown with transient flag

  • Ignore IP comparison and explain ITs in CalciteNoPushdownIT

  • Delete CalcitePushdownIT since all tests are run with pushdown enabled by default

  • Restore pushdown config after CalciteNoPushdownIT class

  • Move expected explain strings to files to circurmvent issues related to comparison involves windows new lines

  • Throw narrower exceptions where it uses loadFromFile

  • Replace window line enddings with unix line enddings for remote tests' responses

  • Revert "Replace window line enddings with unix line enddings for remote tests' responses"

This reverts commit 812fd0d.

  • Use explainQueryToString for explain ITs

  • Use executeWithReplace for explain command variants

  • Migrate CalcitePPLTpchIT to remote test

  • Replace windows carriages with spaces when sanitizing queries to explain


(cherry picked from commit 918c153)

Related Issues

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

noCharger
noCharger previously approved these changes Jun 18, 2025
@yuancu

yuancu commented Jun 18, 2025 •

Copy link
Copy Markdown
Collaborator Author

CI Fixed; using force-push to make the commit history cleaner.

@yuancu
yuancu force-pushed the backport/backport-3778-to-2.19-dev branch from f407692 to 4e45e32 Compare June 18, 2025 05:09
…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
yuancu force-pushed the backport/backport-3778-to-2.19-dev branch from 4e45e32 to f511aa8 Compare June 18, 2025 05:13
@LantaoJin LantaoJin changed the title Backport/backport 3778 to 2.19 dev [Backport 2.19-dev] Migrate standalone integration tests to remote tests Jun 18, 2025
@yuancu
yuancu force-pushed the backport/backport-3778-to-2.19-dev branch from 718db9b to 41bf783 Compare June 18, 2025 06:09
@LantaoJin

LantaoJin commented Jun 18, 2025 •

Copy link
Copy Markdown
Member

Link Checker issue should be resolved by #3793

@LantaoJin

Copy link
Copy Markdown
Member

@penghuo can you help to merge this?

@penghuo
penghuo enabled auto-merge (squash) June 18, 2025 15:41
@penghuo
penghuo disabled auto-merge June 18, 2025 15:41
@penghuo
penghuo merged commit 66039bf into opensearch-project:2.19-dev Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants