Build aggregation responses from execution results#22526
Conversation
Convert flat per-granularity execution results into the client's nested aggregation response using the original request as template. Co-authored-by: Varun <varunsm@amazon.com> Signed-off-by: Sachin Sriramagiri <srirasac@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit 518338d)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 518338d
Previous suggestionsSuggestions up to commit c6a65de
|
|
❌ Gradle check result for c6a65de: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Exclude SQL NULL groups from terms buckets (legacy parity), resolve granularity keys from the aggregate's input row type, use NUL key separator, null-safe toDouble error message. Signed-off-by: Sachin Sriramagiri <srirasac@amazon.com>
|
Persistent review updated to latest commit 518338d |
|
❌ Gradle check result for 518338d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Convert flat per-granularity execution results into the client's nested aggregation response using the original request as template.
Description
Converts analytics engine execution results into OpenSearch InternalAggregations format, enabling aggregation responses in the DSL query executor. Supersedes #21346.
Changes
Verified end to end on a live composite index: terms + metrics, filtered global metrics, and two-level nested aggregations return correct legacy-shaped responses.
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.