mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Add a test case with incorrect JSON.
This commit is contained in:
parent
8ab4e4dcfe
commit
cb459c79aa
@ -19,6 +19,7 @@ Array
|
||||
200
|
||||
300
|
||||
1
|
||||
0
|
||||
--JSONExtractString--
|
||||
hello
|
||||
hello
|
||||
|
@ -23,6 +23,7 @@ SELECT JSONExtractInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 1);
|
||||
SELECT JSONExtractFloat('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 2);
|
||||
SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
|
||||
SELECT JSONExtractBool('{"passed": true}', 'passed');
|
||||
SELECT JSONExtractBool('"HX-=');
|
||||
|
||||
SELECT '--JSONExtractString--';
|
||||
SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
||||
|
Loading…
Reference in New Issue
Block a user