From 6c097f3d3da1b5d9803d99c81298b7fc37a1073e Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Fri, 21 Jun 2024 07:59:58 -0700 Subject: [PATCH] Fix a bug Signed-off-by: bowenlan-amzn --- .../aggregations/bucket/composite/CompositeAggregator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java index fc852954d642c..3d27aaf9b704f 100644 --- a/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java +++ b/server/src/main/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregator.java @@ -183,6 +183,7 @@ protected boolean canOptimize() { // bucketOrds is used for saving the date histogram results got from the optimization path bucketOrds = LongKeyedBucketOrds.build(context.bigArrays(), CardinalityUpperBound.ONE); + return true; } return false; }