DS_HLL_COUNT_DISTINCT (Lakehouse v2)
Devolve uma contagem distinta aproximada com o algoritmo HLL do DataSketches. Mais exata do que APPROX_COUNT_DISTINCT.
Sintaxe do Analyze
Seção intitulada “Sintaxe do Analyze”func.ds_hll_count_distinct(get_column(table, 'user_id'))Exemplos do Analyze
Seção intitulada “Exemplos do Analyze”func.ds_hll_count_distinct(get_column(table, 'user_id'))
┌───────┐│ 10042 │└───────┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”DS_HLL_COUNT_DISTINCT(<expr>)Exemplos de SQL
Seção intitulada “Exemplos de SQL”SELECT DS_HLL_COUNT_DISTINCT(user_id) FROM page_views;
┌───────┐│ 10042 │└───────┘