JSON_LENGTH (Lakehouse v2)
JSONオブジェクトまたは配列の要素数を返します。
Analyzeの構文
Section titled “Analyzeの構文”func.json_length(get_column(table, 'data'))Analyzeの例
Section titled “Analyzeの例”func.json_length(get_column(table, 'data'))
┌───┐│ 2 │└───┘SQLの構文
Section titled “SQLの構文”JSON_LENGTH(<data>)SELECT JSON_LENGTH(PARSE_JSON('{"name":"Alice","age":30}'));
┌───┐│ 2 │└───┘