JSON_SET (Lakehouse v2)
JSONドキュメントの指定したパスに値を設定します。
Analyzeの構文
Section titled “Analyzeの構文”func.json_set(get_column(table, 'data'), '$.age', 31)Analyzeの例
Section titled “Analyzeの例”func.json_set(get_column(table, 'data'), '$.age', 31)
┌──────────────┐│ updated JSON │└──────────────┘SQLの構文
Section titled “SQLの構文”JSON_SET(<data>, '$.age', 31)SELECT JSON_SET(PARSE_JSON('{"name":"Alice"}'), '$.age', 30);
┌───────────────────────────┐│ {"name":"Alice","age":30} │└───────────────────────────┘