mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
20e706766c
Only JSONExtract() can support Nullable, others JSONExtract* (JSONExtractString and similar) does not. And right now this file is pretty complex already, so adding support of Nullable for others will make it even more complex. CI: https://clickhouse-test-reports.s3.yandex.net/29680/d0fc26f91a0141b56a0550741219c3dc43630e03/fuzzer_ubsan/report.html#fail1
22 lines
1.1 KiB
SQL
22 lines
1.1 KiB
SQL
-- Tags: no-fasttest
|
|
|
|
-- to avoid merging Tags and echoOn
|
|
SELECT 1 FORMAT Null;
|
|
|
|
-- { echoOn }
|
|
SELECT JSONExtractInt('[1]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractUInt('[1]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractBool('[1]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractFloat('[1]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractString('["a"]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
|
|
SELECT JSONExtractArrayRaw('["1"]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractKeysAndValuesRaw('["1"]', toNullable(1)); -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
|
|
SELECT JSONExtractKeysAndValues('["1"]', toNullable(1)); -- { serverError ILLEGAL_COLUMN }
|
|
|
|
SELECT JSONExtract('[1]', toNullable(1), 'Nullable(Int)');
|
|
SELECT JSONExtract('[1]', toNullable(1), 'Nullable(UInt8)');
|
|
SELECT JSONExtract('[1]', toNullable(1), 'Nullable(Bool)');
|
|
SELECT JSONExtract('[1]', toNullable(1), 'Nullable(Float)');
|
|
SELECT JSONExtract('["a"]', toNullable(1), 'Nullable(String)');
|