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>)SELECT JSON_KEYS(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────┐│ ["name","age"] │└────────────────┘