mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
d21fa27379
The library and callers are pretty lightweight, so as tests for JSONExtact, so this should be OK Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
9 lines
341 B
SQL
9 lines
341 B
SQL
|
|
select JSONExtract('{"a": "123", "b": 456, "c": [7, 8, 9]}', 'Tuple(a String, b String, c String)');
|
|
|
|
with '{"string_value":null}' as json select JSONExtract(json, 'string_value', 'Nullable(String)');
|
|
|
|
select JSONExtractString('{"a": 123}', 'a');
|
|
select JSONExtractString('{"a": "123"}', 'a');
|
|
select JSONExtractString('{"a": null}', 'a');
|