Fix MAP field path resolution for top, rare, join, lookup and streamstats commands#5206
Fix MAP field path resolution for top, rare, join, lookup and streamstats commands#5206dai-chen wants to merge 7 commits intoopensearch-project:mainfrom
top, rare, join, lookup and streamstats commands#5206Conversation
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit 6cabe6f)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 6cabe6f Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 50f9c6d
Suggestions up to commit de1d42b
|
Signed-off-by: Chen Dai <daichen@amazon.com>
…visitor The Alias wrapping in getGroupByList broke V2 engine's top/rare with group-by because Alias.getChild() returns null, causing NPE in the V2 ExpressionAnalyzer. Move the wrapping to visitRareTopN in the Calcite visitor where it's only needed. Signed-off-by: Chen Dai <daichen@amazon.com>
de1d42b to
50f9c6d
Compare
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 50f9c6d.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit 50f9c6d |
Signed-off-by: Chen Dai <daichen@amazon.com>
Signed-off-by: Chen Dai <daichen@amazon.com>
|
Persistent review updated to latest commit 6cabe6f |
Description
TODO: Follow-up to #5198. This PR extends FieldPathPreMaterializer to resolve MAP dotted paths (e.g. doc.user.name) for additional PPL commands that were not covered in the initial fix.
Related Issues
Resolves #5152
Check List
--signoffor-s.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.