mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test
This commit is contained in:
parent
ad9d5217ec
commit
526b33f607
@ -0,0 +1,17 @@
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-02
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-01 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-01 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-01 00:00:00
|
||||
2000-01-01 00:00:00 2000-01-02 2000-01-01 00:00:00
|
||||
0
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
18
dbms/tests/queries/0_stateless/00835_if_generic_case.sql
Normal file
18
dbms/tests/queries/0_stateless/00835_if_generic_case.sql
Normal file
@ -0,0 +1,18 @@
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, toDate('2000-01-02') AS y, x > y ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, toDate('2000-01-02') AS y, x > y ? x : y AS z;
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, materialize(toDate('2000-01-02')) AS y, x > y ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, materialize(toDate('2000-01-02')) AS y, x > y ? x : y AS z;
|
||||
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, toDate('2000-01-02') AS y, 0 ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, toDate('2000-01-02') AS y, 0 ? x : y AS z;
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, materialize(toDate('2000-01-02')) AS y, 0 ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, materialize(toDate('2000-01-02')) AS y, 0 ? x : y AS z;
|
||||
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, toDate('2000-01-02') AS y, 1 ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, toDate('2000-01-02') AS y, 1 ? x : y AS z;
|
||||
SELECT toDateTime('2000-01-01 00:00:00', 'Europe/Moscow') AS x, materialize(toDate('2000-01-02')) AS y, 1 ? x : y AS z;
|
||||
SELECT materialize(toDateTime('2000-01-01 00:00:00', 'Europe/Moscow')) AS x, materialize(toDate('2000-01-02')) AS y, 1 ? x : y AS z;
|
||||
|
||||
SELECT rand() % 2 = 0 ? number : number FROM numbers(5);
|
||||
|
||||
SELECT rand() % 2 = 0 ? number : toString(number) FROM numbers(5); -- { serverError 386 }
|
Loading…
Reference in New Issue
Block a user