[Backport 2.19-dev] Push down filters on nested fields as nested queries#5051
Merged
[Backport 2.19-dev] Push down filters on nested fields as nested queries#5051
Conversation
* lewSupport basic nested queries when applying filter on a nested filed Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> # Conflicts: # integ-test/src/test/java/org/opensearch/sql/calcite/remote/CalciteExplainIT.java # opensearch/src/main/java/org/opensearch/sql/opensearch/storage/scan/CalciteLogicalIndexScan.java * Test filter on both nested and root level fields Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Support nested queries for simple queries: range, term, terms, etc Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Add integration tests for filtering on nested Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Add a error case for accessing different levels of nested objects in scripts Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Add a test for accessing nested filter in filter in aggregation Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Chores: remove unnecessary comments Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Update plans Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Remove unused plans Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> * Use null instead of empty string as a default to nest path attribute Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> --------- Signed-off-by: Yuanchun Shen <yuanchu@amazon.com> (cherry picked from commit ff82c67) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Comment |
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
yuancu
approved these changes
Jan 15, 2026
qianheng-aws
approved these changes
Jan 15, 2026
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.
Backport ff82c67 from #4825.