JSON_SET (Lakehouse v2)
Sets a value in a JSON document at a specified path.
Analyze Syntax
Section titled “Analyze Syntax”func.json_set(get_column(table, 'data'), '$.age', 31)Analyze Examples
Section titled “Analyze Examples”func.json_set(get_column(table, 'data'), '$.age', 31)
┌──────────────┐│ updated JSON │└──────────────┘SQL Syntax
Section titled “SQL Syntax”JSON_SET(<data>, '$.age', 31)SQL Examples
Section titled “SQL Examples”SELECT JSON_SET(PARSE_JSON('{"name":"Alice"}'), '$.age', 30);
┌───────────────────────────┐│ {"name":"Alice","age":30} │└───────────────────────────┘