Merge pull request #47736 from ClickHouse/add-test-21469

Add a test for #21469
This commit is contained in:
robot-ch-test-poll1 2023-03-20 13:05:39 +01:00 committed by GitHub
commit f78e9dec49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;