Add a test for #21469

This commit is contained in:
Alexey Milovidov 2023-03-20 07:39:17 +01:00
parent 47d9244aae
commit 2b43adea6d
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1
1

View File

@ -0,0 +1,17 @@
DROP TABLE IF EXISTS t_str;
CREATE TABLE t_str
(
`creation_time` String
)
ENGINE = MergeTree
PARTITION BY creation_time
ORDER BY creation_time;
insert into t_str values ('2020-02-02');
select 1 as x from t_str where cast('1970-01-01' as date) <= cast((select max('1970-01-01') from numbers(1)) as date);
select * from ( select 1 as x from t_str where cast('1970-01-01' as date) <= cast((select max('1970-01-01') from numbers(1)) as date));
SELECT * FROM (SELECT * FROM t_str WHERE (SELECT any('1970-01-01'))::Date > today());
DROP TABLE t_str;