generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 181
Support composite aggregation paginating #4884
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
Merged
qianheng-aws
merged 14 commits into
opensearch-project:main
from
LantaoJin:pr/issues/4836
Dec 8, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
987149c
Support composite aggregation paginating in HAVING clause
LantaoJin 1fa0e7c
typo
LantaoJin 9919d68
refactor
LantaoJin 6da727a
Merge remote-tracking branch 'upstream/main' into issues/4836
LantaoJin 2cdc165
refactor
LantaoJin 4ea6724
Fix IT
LantaoJin 7e71535
Fix doctest and IT
LantaoJin 086e2b6
secruity it
LantaoJin 2e324a8
revert changes in OpenSearchIndexScan
LantaoJin 1058b11
Fix compile error
LantaoJin 27bbb60
Fix v2 paginationIT
LantaoJin 8f81b75
optimize request total size in compoisite agg
LantaoJin e40ffbf
fix it
LantaoJin 171903b
Refactor
LantaoJin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
core/src/main/java/org/opensearch/sql/calcite/utils/PPLHintStrategyTable.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| /* | ||
| * Copyright OpenSearch Contributors | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| package org.opensearch.sql.calcite.utils; | ||
|
|
||
| import com.google.common.base.Suppliers; | ||
| import java.util.function.Supplier; | ||
| import lombok.experimental.UtilityClass; | ||
| import org.apache.calcite.rel.hint.HintStrategyTable; | ||
| import org.apache.calcite.rel.logical.LogicalAggregate; | ||
|
|
||
| @UtilityClass | ||
| public class PPLHintStrategyTable { | ||
|
|
||
| private static final Supplier<HintStrategyTable> HINT_STRATEGY_TABLE = | ||
| Suppliers.memoize( | ||
| () -> | ||
| HintStrategyTable.builder() | ||
| .hintStrategy( | ||
| "stats_args", | ||
| (hint, rel) -> { | ||
| return rel instanceof LogicalAggregate; | ||
| }) | ||
| // add more here | ||
| .build()); | ||
|
|
||
| /** Update the HINT_STRATEGY_TABLE when you create a new hint. */ | ||
| public static HintStrategyTable getHintStrategyTable() { | ||
| return HINT_STRATEGY_TABLE.get(); | ||
| } | ||
| } |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
remove all
needCleanandsearchDonein plan.