JSON_KEYS (Lakehouse v2)
Returns the keys of the top-level JSON object as a JSON array.
Analyze Syntax
Section titled “Analyze Syntax”func.json_keys(get_column(table, 'data'))Analyze Examples
Section titled “Analyze Examples”func.json_keys(get_column(table, 'data'))
┌────────────────┐│ ["name","age"] │└────────────────┘SQL Syntax
Section titled “SQL Syntax”JSON_KEYS(<data>)SQL Examples
Section titled “SQL Examples”SELECT JSON_KEYS(PARSE_JSON('{"name":"Alice","age":30}'));
┌────────────────┐│ ["name","age"] │└────────────────┘