mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test #3342
This commit is contained in:
parent
f650bde97d
commit
f2e161156e
16
dbms/tests/queries/0_stateless/00733_if_datetime.reference
Normal file
16
dbms/tests/queries/0_stateless/00733_if_datetime.reference
Normal file
@ -0,0 +1,16 @@
|
||||
2001-02-03 04:05:06
|
||||
2000-01-01 00:00:00
|
||||
2001-02-03 04:05:06
|
||||
2000-01-01 00:00:00
|
||||
2001-02-03 04:05:06
|
||||
2000-01-01 00:00:00
|
||||
2001-02-03 04:05:06
|
||||
2000-01-01 00:00:00
|
||||
2001-02-03
|
||||
2000-01-01
|
||||
2001-02-03
|
||||
2000-01-01
|
||||
2001-02-03
|
||||
2000-01-01
|
||||
2001-02-03
|
||||
2000-01-01
|
9
dbms/tests/queries/0_stateless/00733_if_datetime.sql
Normal file
9
dbms/tests/queries/0_stateless/00733_if_datetime.sql
Normal file
@ -0,0 +1,9 @@
|
||||
SELECT number % 2 ? toDateTime('2000-01-01 00:00:00') : toDateTime('2001-02-03 04:05:06') FROM numbers(2);
|
||||
SELECT number % 2 ? toDateTime('2000-01-01 00:00:00') : materialize(toDateTime('2001-02-03 04:05:06')) FROM numbers(2);
|
||||
SELECT number % 2 ? materialize(toDateTime('2000-01-01 00:00:00')) : toDateTime('2001-02-03 04:05:06') FROM numbers(2);
|
||||
SELECT number % 2 ? materialize(toDateTime('2000-01-01 00:00:00')) : materialize(toDateTime('2001-02-03 04:05:06')) FROM numbers(2);
|
||||
|
||||
SELECT number % 2 ? toDate('2000-01-01') : toDate('2001-02-03') FROM numbers(2);
|
||||
SELECT number % 2 ? toDate('2000-01-01') : materialize(toDate('2001-02-03')) FROM numbers(2);
|
||||
SELECT number % 2 ? materialize(toDate('2000-01-01')) : toDate('2001-02-03') FROM numbers(2);
|
||||
SELECT number % 2 ? materialize(toDate('2000-01-01')) : materialize(toDate('2001-02-03')) FROM numbers(2);
|
Loading…
Reference in New Issue
Block a user