JSON_KEYS (Lakehouse v2)
以 JSON 数组形式返回顶层 JSON 对象的键。
Analyze 语法
Section titled “Analyze 语法”func.json_keys(get_column(table, 'data'))Analyze 示例
Section titled “Analyze 示例”func.json_keys(get_column(table, 'data'))
┌────────────────┐│ ["name","age"] │└────────────────┘SQL 语法
Section titled “SQL 语法”JSON_KEYS(<data>)SQL 示例
Section titled “SQL 示例”SELECT JSON_KEYS(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────┐│ ["name","age"] │└────────────────┘