mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Merge pull request #47736 from ClickHouse/add-test-21469
Add a test for #21469
This commit is contained in:
commit
f78e9dec49
@ -0,0 +1,2 @@
|
||||
1
|
||||
1
|
17
tests/queries/0_stateless/02690_subquery_identifiers.sql
Normal file
17
tests/queries/0_stateless/02690_subquery_identifiers.sql
Normal 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;
|
Loading…
Reference in New Issue
Block a user