@@ -373,6 +373,12 @@ class Boxplot(Agg[_R]):
373
373
:arg compression: Limits the maximum number of nodes used by the
374
374
underlying TDigest algorithm to `20 * compression`, enabling
375
375
control of memory usage and approximation error.
376
+ :arg execution_hint: The default implementation of TDigest is
377
+ optimized for performance, scaling to millions or even billions of
378
+ sample values while maintaining acceptable accuracy levels (close
379
+ to 1% relative error for millions of samples in some cases). To
380
+ use an implementation optimized for accuracy, set this parameter
381
+ to high_accuracy instead. Defaults to `default` if omitted.
376
382
:arg field: The field on which to run the aggregation.
377
383
:arg missing: The value to apply to documents that do not have a
378
384
value. By default, documents without a value are ignored.
@@ -385,13 +391,17 @@ def __init__(
385
391
self ,
386
392
* ,
387
393
compression : Union [float , "DefaultType" ] = DEFAULT ,
394
+ execution_hint : Union [
395
+ Literal ["default" , "high_accuracy" ], "DefaultType"
396
+ ] = DEFAULT ,
388
397
field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
389
398
missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
390
399
script : Union ["types.Script" , Dict [str , Any ], "DefaultType" ] = DEFAULT ,
391
400
** kwargs : Any ,
392
401
):
393
402
super ().__init__ (
394
403
compression = compression ,
404
+ execution_hint = execution_hint ,
395
405
field = field ,
396
406
missing = missing ,
397
407
script = script ,
@@ -1900,6 +1910,12 @@ class MedianAbsoluteDeviation(Agg[_R]):
1900
1910
underlying TDigest algorithm to `20 * compression`, enabling
1901
1911
control of memory usage and approximation error. Defaults to
1902
1912
`1000` if omitted.
1913
+ :arg execution_hint: The default implementation of TDigest is
1914
+ optimized for performance, scaling to millions or even billions of
1915
+ sample values while maintaining acceptable accuracy levels (close
1916
+ to 1% relative error for millions of samples in some cases). To
1917
+ use an implementation optimized for accuracy, set this parameter
1918
+ to high_accuracy instead. Defaults to `default` if omitted.
1903
1919
:arg format:
1904
1920
:arg field: The field on which to run the aggregation.
1905
1921
:arg missing: The value to apply to documents that do not have a
@@ -1913,6 +1929,9 @@ def __init__(
1913
1929
self ,
1914
1930
* ,
1915
1931
compression : Union [float , "DefaultType" ] = DEFAULT ,
1932
+ execution_hint : Union [
1933
+ Literal ["default" , "high_accuracy" ], "DefaultType"
1934
+ ] = DEFAULT ,
1916
1935
format : Union [str , "DefaultType" ] = DEFAULT ,
1917
1936
field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
1918
1937
missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
@@ -1921,6 +1940,7 @@ def __init__(
1921
1940
):
1922
1941
super ().__init__ (
1923
1942
compression = compression ,
1943
+ execution_hint = execution_hint ,
1924
1944
format = format ,
1925
1945
field = field ,
1926
1946
missing = missing ,
0 commit comments