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
|
200
|
||||||
300
|
300
|
||||||
1
|
1
|
||||||
|
0
|
||||||
--JSONExtractString--
|
--JSONExtractString--
|
||||||
hello
|
hello
|
||||||
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 JSONExtractFloat('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', 2);
|
||||||
SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
|
SELECT JSONExtractUInt('{"a": "hello", "b": [-100, 200.0, 300]}', 'b', -1);
|
||||||
SELECT JSONExtractBool('{"passed": true}', 'passed');
|
SELECT JSONExtractBool('{"passed": true}', 'passed');
|
||||||
|
SELECT JSONExtractBool('"HX-=');
|
||||||
|
|
||||||
SELECT '--JSONExtractString--';
|
SELECT '--JSONExtractString--';
|
||||||
SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
SELECT JSONExtractString('{"a": "hello", "b": [-100, 200.0, 300]}', 'a');
|
||||||
|
Loading…
Reference in New Issue
Block a user