You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* aggregation: mandatory. A aggregation function. The argument of aggregation must be field.
41
41
42
-
* bucket_nullable: optional. Controls whether the stats command includes null buckets in group-by aggregations. When set to ``false``, the aggregation ignores records where the group-by field is null, resulting in faster performance by excluding null bucket. The default value of ``bucket_nullable`` is determined by ``plugins.ppl.syntax.legacy.preferred``:
42
+
* bucket_nullable: optional (since 3.3.0). Controls whether the stats command includes null buckets in group-by aggregations. When set to ``false``, the aggregation ignores records where the group-by field is null, resulting in faster performance by excluding null bucket. The default value of ``bucket_nullable`` is determined by ``plugins.ppl.syntax.legacy.preferred``:
43
43
44
44
* When ``plugins.ppl.syntax.legacy.preferred=true``, ``bucket_nullable`` defaults to ``true``
45
45
* When ``plugins.ppl.syntax.legacy.preferred=false``, ``bucket_nullable`` defaults to ``false``
@@ -692,9 +692,11 @@ PPL query::
692
692
Example 15: Ignore null bucket
693
693
==============================
694
694
695
+
Note: This argument requires version 3.3.0 or above.
696
+
695
697
PPL query::
696
698
697
-
os> source=accounts | stats bucket_nullable=false count() as cnt by email;
699
+
PPL> source=accounts | stats bucket_nullable=false count() as cnt by email;
Copy file name to clipboardExpand all lines: opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/aggregation/AggregationQueryBuilder.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ public AggregationQueryBuilder(ExpressionSerializer serializer) {
Copy file name to clipboardExpand all lines: opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/aggregation/dsl/BucketAggregationBuilder.java
0 commit comments