HLL_EXPORT
functionsupportedCore SQL functionsConverts input in BINARY format to OBJECT format. The HyperLogLog states operated on by HLL_ACCUMULATE, HLL_COMBINE, and HLL_ESTIMATE are in a proprietary binary format that may change in future versions of Snowflake. For long-term storage of HyperLogLog states, and for integration with external tools, Snowflake supports converting states from the BINARY format to an OBJECT (which can be printed and exported as JSON), and vice versa.
Syntax
supportedpartialnot supportednot scored
Aggregate function
HLL_EXPORT( <binary_expr> )
Window function
HLL_EXPORT( <binary_expr> ) OVER ( [ PARTITION BY <expr> ] )
Parameters
| Name | Required | Description |
|---|---|---|
binary_expr | required | An expression that evaluates to a HyperLogLog state in BINARY format. |
Usage notes
- This function can be used as an aggregate function or a window function.