नोट
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप साइन इन करने या निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
इस पेज तक पहुँच के लिए प्रमाणन की आवश्यकता होती है. आप निर्देशिकाओं को बदलने का प्रयास कर सकते हैं.
Applies to:
Databricks Runtime 18.0 and later
Creates a KLL (Karnin-Lang-Liberty) sketch for approximate quantile estimation on double precision floating-point data with configurable accuracy.
Syntax
kll_sketch_agg_double ( expr [, k] )
Arguments
expr: ADOUBLEexpression to aggregate.k: An optionalINTEGERliteral controlling sketch accuracy. Must be between 8 and 65535. The default is 200. Higher values provide better accuracy but use more memory.
Returns
A BINARY value containing the serialized KLL sketch for DOUBLE data.
Notes
NULLvalues in expr are ignored during aggregation.- NaN values are handled according to IEEE 754 semantics.
- The sketch provides approximate quantiles with a confidence level of about 99%.
- Preferred for high-precision quantile estimation.
Examples
-- Create sketch from double values
> SELECT kll_sketch_agg_double(measurement) FROM VALUES (1.23456), (2.34567) AS T(measurement)
[binary data]