JSON_SET (Lakehouse v2)
Définit une valeur dans un document JSON au chemin spécifié.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.json_set(get_column(table, 'data'), '$.age', 31)Exemples Analyze
Section intitulée « Exemples Analyze »func.json_set(get_column(table, 'data'), '$.age', 31)
┌──────────────┐│ updated JSON │└──────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »JSON_SET(<data>, '$.age', 31)Exemples SQL
Section intitulée « Exemples SQL »SELECT JSON_SET(PARSE_JSON('{"name":"Alice"}'), '$.age', 30);
┌───────────────────────────┐│ {"name":"Alice","age":30} │└───────────────────────────┘