GET_JSON_OBJECT (Lakehouse v2)
按指定路径从 JSON 字符串中提取 JSON 对象。
Analyze 语法
Section titled “Analyze 语法”func.get_json_object(get_column(table, 'data'), '$.address')Analyze 示例
Section titled “Analyze 示例”func.get_json_object(get_column(table, 'data'), '$.address')
┌─────────────┐│ JSON object │└─────────────┘SQL 语法
Section titled “SQL 语法”GET_JSON_OBJECT(<data>, '$.address')SQL 示例
Section titled “SQL 示例”SELECT GET_JSON_OBJECT('{"address":{"city":"NYC"}}', '$.address');
┌────────────────┐│ {"city":"NYC"} │└────────────────┘