Skip to content

[Backport 2.19-dev] Support pushdown physical sort operator to speedup SortMergeJoin (#3864) #3889

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

Conversation

LantaoJin
Copy link
Member

@LantaoJin LantaoJin commented Jul 17, 2025

Backport 71aa9ba from #3864.

…nsearch-project#3864)

* Support pushdown physical sort operator to speedup SortMergeJoin

Signed-off-by: Lantao Jin <[email protected]>

* Enable sort pushdown when the type is TEXT without fields and fielddata=true

Signed-off-by: Lantao Jin <[email protected]>

* Fix UT

Signed-off-by: Lantao Jin <[email protected]>

* Add OpenSearchTextType.toKeywordSubField()

Signed-off-by: Lantao Jin <[email protected]>

* Fix IT

Signed-off-by: Lantao Jin <[email protected]>

* Fix IT

Signed-off-by: Lantao Jin <[email protected]>

* Only push down sort when order is ASC for fielddata text

Signed-off-by: Lantao Jin <[email protected]>

* revert CalciteNoPushdownIT

Signed-off-by: Lantao Jin <[email protected]>

* revert the fielddata logic

Signed-off-by: Lantao Jin <[email protected]>

* Fix IT

Signed-off-by: Lantao Jin <[email protected]>

* 'gender' in test data should contain keyword subfield

Signed-off-by: Lantao Jin <[email protected]>

* Fix IT

Signed-off-by: Lantao Jin <[email protected]>

* revert the typo change in test

Signed-off-by: Lantao Jin <[email protected]>

* fix no pushdown IT

Signed-off-by: Lantao Jin <[email protected]>

---------

Signed-off-by: Lantao Jin <[email protected]>
(cherry picked from commit 71aa9ba)
@LantaoJin LantaoJin changed the title Support pushdown physical sort operator to speedup SortMergeJoin (#3864) [Backport 2.19-dev] Support pushdown physical sort operator to speedup SortMergeJoin (#3864) Jul 17, 2025
Signed-off-by: Lantao Jin <[email protected]>
@LantaoJin
Copy link
Member Author

CI failure related to #3895

@penghuo penghuo merged commit 243cb99 into opensearch-project:2.19-dev Jul 21, 2025
32 of 34 checks passed
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.

3 participants