DS_HLL_COUNT_DISTINCT (Lakehouse v2)
Retorna uma contagem distinta aproximada usando o algoritmo HLL do DataSketches. Mais precisa que APPROX_COUNT_DISTINCT.
Sintaxe no Analyze
Seção intitulada “Sintaxe no Analyze”func.ds_hll_count_distinct(get_column(table, 'user_id'))Exemplos no Analyze
Seção intitulada “Exemplos no 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 │└───────┘