mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Add test
This commit is contained in:
parent
4daf011e0b
commit
bbb8a44399
@ -13,3 +13,10 @@ test"string
|
||||
"["
|
||||
["]", "2", "3"]
|
||||
{"nested" : [1,2,3]}
|
||||
-1
|
||||
0
|
||||
0
|
||||
-1
|
||||
1
|
||||
test_string
|
||||
test"string
|
||||
|
@ -15,3 +15,11 @@ SELECT visitParamExtractRaw('{"myparam": "{"}', 'myparam');
|
||||
SELECT visitParamExtractRaw('{"myparam": "["}', 'myparam');
|
||||
SELECT visitParamExtractRaw('{"myparam": ["]", "2", "3"], "other":123}', 'myparam');
|
||||
SELECT visitParamExtractRaw('{"myparam": {"nested" : [1,2,3]}, "other":123}', 'myparam');
|
||||
|
||||
SELECT JSONExtractInt('{"myparam":-1}', 'myparam');
|
||||
SELECT JSONExtractUInt('{"myparam":-1}', 'myparam');
|
||||
SELECT JSONExtractFloat('{"myparam":null}', 'myparam');
|
||||
SELECT JSONExtractFloat('{"myparam":-1}', 'myparam');
|
||||
SELECT JSONExtractBool('{"myparam":true}', 'myparam');
|
||||
SELECT JSONExtractString('{"myparam":"test_string"}', 'myparam');
|
||||
SELECT JSONExtractString('{"myparam":"test\\"string"}', 'myparam');
|
||||
|
Loading…
Reference in New Issue
Block a user