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
*Output*: numeric value. If this field contains only `null` values, the function
109
+
returns `null`. Otherwise, the function ignores `null` values in this field.
109
110
110
111
*Description*: Returns the total number of _distinct non-null_ values in input values.
111
112
@@ -137,7 +138,7 @@ FIRST(
137
138
138
139
*Output*: same type as the input
139
140
140
-
*Description*: Returns the first **non-NULL** value (if such exists) of the `field_name` input column sorted by
141
+
*Description*: Returns the first non-`null` value (if such exists) of the `field_name` input column sorted by
141
142
the `ordering_field_name` column. If `ordering_field_name` is not provided, only the `field_name`
142
143
column is used for the sorting. E.g.:
143
144
@@ -237,7 +238,7 @@ LAST(
237
238
238
239
*Output*: same type as the input
239
240
240
-
*Description*: It's the inverse of <<sql-functions-aggs-first>>. Returns the last **non-NULL** value (if such exists) of the
241
+
*Description*: It's the inverse of <<sql-functions-aggs-first>>. Returns the last non-`null` value (if such exists) of the
241
242
`field_name` input column sorted descending by the `ordering_field_name` column. If `ordering_field_name` is not
242
243
provided, only the `field_name` column is used for the sorting. E.g.:
243
244
@@ -330,7 +331,8 @@ MAX(field_name) <1>
330
331
331
332
*Input*:
332
333
333
-
<1> a numeric field
334
+
<1> a numeric field. If this field contains only `null` values, the function
335
+
returns `null`. Otherwise, the function ignores `null` values in this field.
334
336
335
337
*Output*: same type as the input
336
338
@@ -361,7 +363,8 @@ MIN(field_name) <1>
361
363
362
364
*Input*:
363
365
364
-
<1> a numeric field
366
+
<1> a numeric field. If this field contains only `null` values, the function
367
+
returns `null`. Otherwise, the function ignores `null` values in this field.
365
368
366
369
*Output*: same type as the input
367
370
@@ -387,7 +390,8 @@ SUM(field_name) <1>
387
390
388
391
*Input*:
389
392
390
-
<1> a numeric field
393
+
<1> a numeric field. If this field contains only `null` values, the function
394
+
returns `null`. Otherwise, the function ignores `null` values in this field.
391
395
392
396
*Output*: `bigint` for integer input, `double` for floating points
393
397
@@ -418,7 +422,8 @@ KURTOSIS(field_name) <1>
418
422
419
423
*Input*:
420
424
421
-
<1> a numeric field
425
+
<1> a numeric field. If this field contains only `null` values, the function
426
+
returns `null`. Otherwise, the function ignores `null` values in this field.
422
427
423
428
*Output*: `double` numeric value
424
429
@@ -452,7 +457,8 @@ MAD(field_name) <1>
452
457
453
458
*Input*:
454
459
455
-
<1> a numeric field
460
+
<1> a numeric field. If this field contains only `null` values, the function
461
+
returns `null`. Otherwise, the function ignores `null` values in this field.
456
462
457
463
*Output*: `double` numeric value
458
464
@@ -485,8 +491,10 @@ PERCENTILE(
485
491
486
492
*Input*:
487
493
488
-
<1> a numeric field
489
-
<2> a numeric expression (must be a constant and not based on a field)
494
+
<1> a numeric field. If this field contains only `null` values, the function
495
+
returns `null`. Otherwise, the function ignores `null` values in this field.
496
+
<2> a numeric expression (must be a constant and not based on a field). If
497
+
`null`, the function returns `null`.
490
498
<3> optional string literal for the <<search-aggregations-metrics-percentile-aggregation-approximation,percentile algorithm>>. Possible values: `tdigest` or `hdr`. Defaults to `tdigest`.
491
499
<4> optional numeric literal that configures the <<search-aggregations-metrics-percentile-aggregation-approximation,percentile algorithm>>. Configures `compression` for `tdigest` or `number_of_significant_value_digits` for `hdr`. The default is the same as that of the backing algorithm.
492
500
@@ -527,8 +535,10 @@ PERCENTILE_RANK(
527
535
528
536
*Input*:
529
537
530
-
<1> a numeric field
531
-
<2> a numeric expression (must be a constant and not based on a field)
538
+
<1> a numeric field. If this field contains only `null` values, the function
539
+
returns `null`. Otherwise, the function ignores `null` values in this field.
540
+
<2> a numeric expression (must be a constant and not based on a field). If
541
+
`null`, the function returns `null`.
532
542
<3> optional string literal for the <<search-aggregations-metrics-percentile-aggregation-approximation,percentile algorithm>>. Possible values: `tdigest` or `hdr`. Defaults to `tdigest`.
533
543
<4> optional numeric literal that configures the <<search-aggregations-metrics-percentile-aggregation-approximation,percentile algorithm>>. Configures `compression` for `tdigest` or `number_of_significant_value_digits` for `hdr`. The default is the same as that of the backing algorithm.
534
544
@@ -566,7 +576,8 @@ SKEWNESS(field_name) <1>
566
576
567
577
*Input*:
568
578
569
-
<1> a numeric field
579
+
<1> a numeric field. If this field contains only `null` values, the function
580
+
returns `null`. Otherwise, the function ignores `null` values in this field.
570
581
571
582
*Output*: `double` numeric value
572
583
@@ -600,7 +611,8 @@ STDDEV_POP(field_name) <1>
600
611
601
612
*Input*:
602
613
603
-
<1> a numeric field
614
+
<1> a numeric field. If this field contains only `null` values, the function
615
+
returns `null`. Otherwise, the function ignores `null` values in this field.
604
616
605
617
*Output*: `double` numeric value
606
618
@@ -629,7 +641,8 @@ STDDEV_SAMP(field_name) <1>
629
641
630
642
*Input*:
631
643
632
-
<1> a numeric field
644
+
<1> a numeric field. If this field contains only `null` values, the function
645
+
returns `null`. Otherwise, the function ignores `null` values in this field.
0 commit comments