Introduce execution hint for Cardinality aggregation#17301
Introduce execution hint for Cardinality aggregation#17301asimmahmood1 wants to merge 23 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
Signed-off-by: Siddharth Rayabharam <maitreya2954@gmail.com>
| if (hasPrecisionThreshold) { | ||
| out.writeLong(precisionThreshold); | ||
| } | ||
| out.writeOptionalString(executionHint); |
There was a problem hiding this comment.
When making ser/de changes there can be issues in mixed clusters (fe during B/G) if this object is serialized to an older node that doesn't understand the value. In such cases, the serialization logic can check the target version (example) to see if the target node is of an older version and exclude it from serialization.
Similarly when deserializing if the request is coming from an older node then if you try to read the value from the StreamInput it will fail.
There was a problem hiding this comment.
Ah, good point, will update.
* This PR is reviving opensearch-project#15764 Signed-off-by: Asim Mahmood <asimmahm@amazon.com>
| * @opensearch.internal | ||
| */ | ||
| private static class DirectCollector extends Collector { | ||
| public static class DirectCollector extends Collector { |
|
❌ Gradle check result for c582cdc: 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? |
|
❌ Gradle check result for f4c2e05: 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? |
|
Closing this PR, it has double commit message, going to recreate a new PR. |
Description
Introduce execution hint for Cardinality aggregation - Revive PR #15764
Related Issues
Resolves #15269
Check List
Testing
Tested using big5 dataset, see #16837 (comment)
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.