diff --git a/tests/performance/parse_illegal_datetime.xml b/tests/performance/parse_illegal_datetime.xml new file mode 100644 index 00000000000..29195a01b91 --- /dev/null +++ b/tests/performance/parse_illegal_datetime.xml @@ -0,0 +1,33 @@ + + + CREATE TABLE test_date(date String) ENGINE = Memory; + + + + INSERT INTO test_date SELECT 'invalid' FROM numbers(1000000); + + + + 1 + + + + SELECT parseDateTimeOrZero(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null; + + + + SELECT parseDateTimeOrNull(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null; + + + + SELECT parseDateTimeInJodaSyntaxOrZero(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null; + + + + SELECT parseDateTimeInJodaSyntaxOrNull(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null; + + + + DROP TABLE IF EXISTS test_date + +