mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Add test back
This commit is contained in:
parent
a98cba351d
commit
fad21c9958
33
tests/performance/parse_illegal_datetime.xml
Normal file
33
tests/performance/parse_illegal_datetime.xml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<test>
|
||||||
|
<create_query>
|
||||||
|
CREATE TABLE test_date(date String) ENGINE = Memory;
|
||||||
|
</create_query>
|
||||||
|
|
||||||
|
<fill_query>
|
||||||
|
INSERT INTO test_date SELECT 'invalid' FROM numbers(1000000);
|
||||||
|
</fill_query>
|
||||||
|
|
||||||
|
<settings>
|
||||||
|
<max_threads>1</max_threads>
|
||||||
|
</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>
|
Loading…
Reference in New Issue
Block a user