ClickHouse/tests/performance/parse_illegal_datetime.xml

34 lines
928 B
XML
Raw Normal View History

2024-04-15 10:29:05 +00:00
<test>
<create_query>
CREATE TABLE test_date(date String) ENGINE = Memory;
</create_query>
<fill_query>
2024-04-16 10:09:17 +00:00
INSERT INTO test_date SELECT 'invalid' FROM numbers(100000);
2024-04-15 10:29:05 +00:00
</fill_query>
<settings>
2024-04-16 10:09:17 +00:00
<max_threads>1</max_threads>
2024-04-15 10:29:05 +00:00
</settings>
<query>
SELECT parseDateTimeOrZero(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null;
</query>
<query>
SELECT parseDateTimeOrNull(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null;
</query>
<query>
SELECT parseDateTimeInJodaSyntaxOrZero(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null;
</query>
<query>
SELECT parseDateTimeInJodaSyntaxOrNull(date, 'yyyy-MM-dd HH:mm:ss', 'Asia/Shanghai') FROM test_date FORMAT Null;
</query>
<drop_query>
DROP TABLE IF EXISTS test_date
</drop_query>
</test>