IFNULL (Lakehouse v2)
Renvoie la première expression si elle n’est pas NULL, sinon renvoie la seconde expression.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.ifnull(get_column(table, 'phone'), 'N/A')Exemples Analyze
Section intitulée « Exemples Analyze »func.ifnull(get_column(table, 'phone'), 'N/A')Syntaxe SQL
Section intitulée « Syntaxe SQL »IFNULL(<phone>, 'N/A')Exemples SQL
Section intitulée « Exemples SQL »SELECT name, IFNULL(phone, 'N/A') AS phone FROM contacts;
┌─────────┬──────────┐│ name │ phone │├─────────┼──────────┤│ Alice │ 555-1234 ││ Bob │ N/A │└─────────┴──────────┘