diff --git a/dbms/tests/queries/0_stateless/00918_json_functions.reference b/dbms/tests/queries/0_stateless/00918_json_functions.reference index 1774ac7b5bd1492e7d89ea0641b938829f960d40..e98579a1abab7370055c1578ed8e2edeaa95d12f 100644 --- a/dbms/tests/queries/0_stateless/00918_json_functions.reference +++ b/dbms/tests/queries/0_stateless/00918_json_functions.reference @@ -19,6 +19,7 @@ Array 200 300 1 +0 --JSONExtractString-- hello hello diff --git a/dbms/tests/queries/0_stateless/00918_json_functions.sql b/dbms/tests/queries/0_stateless/00918_json_functions.sql index fb028d0880363ef9482c75af68011839082322fc..3bf0090a8629c39c1af99a72ad1fddcfc286af59 100644 --- a/dbms/tests/queries/0_stateless/00918_json_functions.sql +++ b/dbms/tests/queries/0_stateless/00918_json_functions.sql @@ -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');