@@ -372,6 +372,12 @@ class Boxplot(Agg[_R]):
372372 :arg compression: Limits the maximum number of nodes used by the
373373 underlying TDigest algorithm to `20 * compression`, enabling
374374 control of memory usage and approximation error.
375+ :arg execution_hint: The default implementation of TDigest is
376+ optimized for performance, scaling to millions or even billions of
377+ sample values while maintaining acceptable accuracy levels (close
378+ to 1% relative error for millions of samples in some cases). To
379+ use an implementation optimized for accuracy, set this parameter
380+ to high_accuracy instead. Defaults to `default` if omitted.
375381 :arg field: The field on which to run the aggregation.
376382 :arg missing: The value to apply to documents that do not have a
377383 value. By default, documents without a value are ignored.
@@ -384,13 +390,17 @@ def __init__(
384390 self ,
385391 * ,
386392 compression : Union [float , "DefaultType" ] = DEFAULT ,
393+ execution_hint : Union [
394+ Literal ["default" , "high_accuracy" ], "DefaultType"
395+ ] = DEFAULT ,
387396 field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
388397 missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
389398 script : Union ["types.Script" , Dict [str , Any ], "DefaultType" ] = DEFAULT ,
390399 ** kwargs : Any ,
391400 ):
392401 super ().__init__ (
393402 compression = compression ,
403+ execution_hint = execution_hint ,
394404 field = field ,
395405 missing = missing ,
396406 script = script ,
@@ -1898,6 +1908,12 @@ class MedianAbsoluteDeviation(Agg[_R]):
18981908 underlying TDigest algorithm to `20 * compression`, enabling
18991909 control of memory usage and approximation error. Defaults to
19001910 `1000` if omitted.
1911+ :arg execution_hint: The default implementation of TDigest is
1912+ optimized for performance, scaling to millions or even billions of
1913+ sample values while maintaining acceptable accuracy levels (close
1914+ to 1% relative error for millions of samples in some cases). To
1915+ use an implementation optimized for accuracy, set this parameter
1916+ to high_accuracy instead. Defaults to `default` if omitted.
19011917 :arg format:
19021918 :arg field: The field on which to run the aggregation.
19031919 :arg missing: The value to apply to documents that do not have a
@@ -1911,6 +1927,9 @@ def __init__(
19111927 self ,
19121928 * ,
19131929 compression : Union [float , "DefaultType" ] = DEFAULT ,
1930+ execution_hint : Union [
1931+ Literal ["default" , "high_accuracy" ], "DefaultType"
1932+ ] = DEFAULT ,
19141933 format : Union [str , "DefaultType" ] = DEFAULT ,
19151934 field : Union [str , "InstrumentedField" , "DefaultType" ] = DEFAULT ,
19161935 missing : Union [str , int , float , bool , "DefaultType" ] = DEFAULT ,
@@ -1919,6 +1938,7 @@ def __init__(
19191938 ):
19201939 super ().__init__ (
19211940 compression = compression ,
1941+ execution_hint = execution_hint ,
19221942 format = format ,
19231943 field = field ,
19241944 missing = missing ,
0 commit comments