COALESCE (Lakehouse v2)
Returns the first non-NULL expression from a list of expressions.
Analyze Syntax
Section titled “Analyze Syntax”func.coalesce(get_column(table, 'nickname'), get_column(table, 'name'))Analyze Examples
Section titled “Analyze Examples”func.coalesce(get_column(table, 'nickname'), get_column(table, 'name'), 'Unknown')SQL Syntax
Section titled “SQL Syntax”COALESCE(<nickname>, <name>)SQL Examples
Section titled “SQL Examples”SELECT COALESCE(nickname, first_name, 'Unknown') AS display_name FROM users;
┌──────────────┐│ display_name │├──────────────┤│ Bob ││ Alice ││ Unknown │└──────────────┘