BOOL_OR(Lakehouse v2)
グループ内にTRUEの値が1つでもあればTRUEを返します。
Analyzeの構文
Section titled “Analyzeの構文”func.bool_or(get_column(table, 'is_active'))Analyzeの例
Section titled “Analyzeの例”func.bool_or(get_column(table, 'is_active'))SQLの構文
Section titled “SQLの構文”BOOL_OR(<is_active>)SELECT department, BOOL_OR(is_active) FROM employees GROUP BY department;
┌────────────┬─────────────────────┐│ department │ bool_or(is_active) │├────────────┼─────────────────────┤│ Sales │ 1 ││ IT │ 1 │└────────────┴─────────────────────┘