2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test_00609;
|
|
|
|
DROP TABLE IF EXISTS test_mv_00609;
|
2018-03-19 14:29:40 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
create table test_00609 (a Int8) engine=Memory;
|
2018-03-19 14:29:40 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
insert into test_00609 values (1);
|
|
|
|
create materialized view test_mv_00609 Engine=MergeTree(date, (a), 8192) populate as select a, toDate('2000-01-01') date from test_00609;
|
2018-03-19 14:29:40 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
select * from test_mv_00609; -- OK
|
|
|
|
select * from test_mv_00609 where a in (select a from test_mv_00609); -- EMPTY (bug)
|
|
|
|
select * from ".inner.test_mv_00609" where a in (select a from test_mv_00609); -- OK
|
2018-03-19 14:29:40 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE test_00609;
|
|
|
|
DROP TABLE test_mv_00609;
|