GET_JSON_INT (Lakehouse v2)
Extrait une valeur entière d’un objet JSON à partir d’un chemin spécifié.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.get_json_int(get_column(table, 'data'), '$.age')Exemples Analyze
Section intitulée « Exemples Analyze »func.get_json_int(get_column(table, 'data'), '$.age')
┌────┐│ 30 │└────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »GET_JSON_INT(<data>, '$.age')Exemples SQL
Section intitulée « Exemples SQL »SELECT GET_JSON_INT('{"age": 30}', '$.age');
┌────┐│ 30 │└────┘