DS_HLL_COUNT_DISTINCT (Lakehouse v2)
Renvoie un nombre distinct approximatif à l’aide de l’algorithme HLL de DataSketches. Plus précise que APPROX_COUNT_DISTINCT.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.ds_hll_count_distinct(get_column(table, 'user_id'))Exemples Analyze
Section intitulée « Exemples Analyze »func.ds_hll_count_distinct(get_column(table, 'user_id'))
┌───────┐│ 10042 │└───────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »DS_HLL_COUNT_DISTINCT(<expr>)Exemples SQL
Section intitulée « Exemples SQL »SELECT DS_HLL_COUNT_DISTINCT(user_id) FROM page_views;
┌───────┐│ 10042 │└───────┘