BOOL_OR (Lakehouse v2)
如果组中任一值为 TRUE,则返回 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>)SQL 示例
Section titled “SQL 示例”SELECT department, BOOL_OR(is_active) FROM employees GROUP BY department;
┌────────────┬─────────────────────┐│ department │ bool_or(is_active) │├────────────┼─────────────────────┤│ Sales │ 1 ││ IT │ 1 │└────────────┴─────────────────────┘