mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +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
566 B
SQL
9 lines
566 B
SQL
SELECT JSONExtract('{"a": 123456}', 'FixedString(11)');
|
|
SELECT JSONExtract('{"a": 123456}', 'FixedString(12)');
|
|
SELECT JSONExtract('{"a": "123456"}', 'a', 'FixedString(5)');
|
|
SELECT JSONExtract('{"a": "123456"}', 'a', 'FixedString(6)');
|
|
SELECT JSONExtract('{"a": 123456}', 'a', 'FixedString(5)');
|
|
SELECT JSONExtract('{"a": 123456}', 'a', 'FixedString(6)');
|
|
SELECT JSONExtract(materialize('{"a": 131231}'), 'a', 'LowCardinality(FixedString(5))') FROM numbers(2);
|
|
SELECT JSONExtract(materialize('{"a": 131231}'), 'a', 'LowCardinality(FixedString(6))') FROM numbers(2);
|