2021-09-28 09:46:46 +00:00
|
|
|
-- Tags: no-fasttest
|
|
|
|
|
2021-09-28 03:38:08 +00:00
|
|
|
SELECT JSONExtract('{"string_value":null}', 'string_value', 'Nullable(String)') as x, toTypeName(x);
|
|
|
|
SELECT JSONExtract('{"string_value":null}', 'string_value', 'String') as x, toTypeName(x);
|
|
|
|
SELECT JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'Nullable(String)') as x, toTypeName(x);
|
|
|
|
SELECT JSONExtract(toNullable('{"string_value":null}'), 'string_value', 'String') as x, toTypeName(x);
|
|
|
|
SELECT JSONExtract(NULL, 'string_value', 'Nullable(String)') as x, toTypeName(x);
|
|
|
|
SELECT JSONExtract(NULL, 'string_value', 'String') as x, toTypeName(x);
|
2021-10-02 04:20:56 +00:00
|
|
|
SELECT JSONExtractString('["a", "b", "c", "d", "e"]', idx) FROM (SELECT arrayJoin([2, NULL, 2147483646, 65535, 65535, 3]) AS idx);
|