Updated on 2025-05-29 GMT+08:00

Deprecated Functions

Some old HLL functions are deprecated due to version upgrade. You can replace them with similar functions.

hll_schema_version(hll)

Description: Checks the schema version in the current HLL. In earlier versions, the schema version is fixed at 1, which is used to verify the header of the HLL field. After refactoring, the HLL field is added to the header for verification. The schema version is no longer used.

hll_regwidth(hll)

Description: Queries the bucket size in the HLL data structure. In earlier versions, the value of regwidth ranges from 1 to 5, which has a large error and limits the upper limit of the cardinality estimation. After refactoring, the value of regwidth is fixed at 6 and the variable is not used.

hll_expthresh(hll)

Description: Obtains the value of expthresh in the current HLL. The hll_log2explicit(hll) function is used to replace similar functions.

hll_sparseon(hll)

Description: Specifies whether the sparse mode is enabled. Use hll_log2sparse(hll) to replace similar functions. The value 0 indicates that the sparse mode is disabled.