MULTI_DISTINCT_COUNT (Lakehouse v2)
重複を除いた値の数を返します。COUNT(DISTINCT) と同等です。
Analyzeの構文
Section titled “Analyzeの構文”func.multi_distinct_count(get_column(table, 'dept'))Analyzeの例
Section titled “Analyzeの例”func.multi_distinct_count(get_column(table, 'department'))
┌───┐│ 5 │└───┘SQLの構文
Section titled “SQLの構文”MULTI_DISTINCT_COUNT(<dept>)SELECT MULTI_DISTINCT_COUNT(department) FROM employees;
┌───┐│ 5 │└───┘