This commit is contained in:
Alexey Milovidov 2018-10-12 03:18:36 +03:00
parent f650bde97d
commit f2e161156e
2 changed files with 25 additions and 0 deletions

View 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

View 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);