You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drop table if exists test_mv_group;
create MATERIALIZED VIEW test_mv_group (x String)
ENGINE = MergeTree Partition by tuple() order by tuple()
AS SELECT x FROM test.test group by x;
select * from test_mv_group
┌─x─────┐
│ stest │
└───────┘
1 rows in set. Elapsed: 0.001 sec.
den-crane
changed the title
18.5.1 Wrong MV evaluation with SELECT DISTINCT (seems the same in 18.1)
18.5.1 Wrong MV evaluation with SELECT DISTINCT (started in 18.1 and upto 18.6.0)
Aug 3, 2018
ClickHouse client version 18.5.1.
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 18.5.54400.
CREATE TABLE test ( x String) ENGINE = Null;
create MATERIALIZED VIEW test_mv_bad (x String)
ENGINE = MergeTree Partition by tuple() order by tuple()
AS SELECT DISTINCT x FROM test;
create MATERIALIZED VIEW test_mv_good (x String)
ENGINE = MergeTree Partition by tuple() order by tuple()
AS SELECT x FROM test;
insert into test values('stest');
select * from test_mv_bad
Ok.
0 rows in set. Elapsed: 0.007 sec.
select * from test_mv_good
┌─x─────┐
│ stest │
└───────┘
1 rows in set. Elapsed: 0.001 sec.
The text was updated successfully, but these errors were encountered: