mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
18 lines
695 B
SQL
18 lines
695 B
SQL
-- Tags: no-ordinary-database
|
|
|
|
DROP TABLE IF EXISTS test_00609;
|
|
DROP TABLE IF EXISTS test_mv_00609;
|
|
|
|
create table test_00609 (a Int8) engine=Memory;
|
|
|
|
insert into test_00609 values (1);
|
|
set allow_deprecated_syntax_for_merge_tree=1;
|
|
create materialized view test_mv_00609 uuid '00000609-1000-4000-8000-000000000001' Engine=MergeTree(date, (a), 8192) populate as select a, toDate('2000-01-01') date from test_00609;
|
|
|
|
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_id.00000609-1000-4000-8000-000000000001" where a in (select a from test_mv_00609); -- OK
|
|
|
|
DROP TABLE test_00609;
|
|
DROP TABLE test_mv_00609;
|