-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Labels
Milestone
Description
Describe the bug
create table t (src int, dst int);
create materialized view cycle_3 as
select t1.src p1, t1.dst p2, t2.dst p3 from
t t1 join t t2 join t t3 where t1.dst = t2.src and t2.src = t3.dst and t3.dst = t1.src;
insert into t values (1, 2), (2, 1);
flush;
StreamMaterialize { columns: [p1, p2, p3, t._row_id(hidden), t._row_id#1(hidden), t.src(hidden), t._row_id#2(hidden), t.dst(hidden)], pk_columns: [t._row_id, t._row_id#1, p2, t.src, t._row_id#2, t.dst, p1] }
└─StreamHashJoin { type: Inner, predicate: t.src = t.dst AND t.src = t.dst }
├─StreamExchange { dist: HashShard(t.src) }
| └─StreamHashJoin { type: Inner, predicate: t.dst = t.src }
| ├─StreamExchange { dist: HashShard(t.dst) }
| | └─StreamTableScan { table: t, columns: [src, dst, _row_id] }
| └─StreamExchange { dist: HashShard(t.src) }
| └─StreamTableScan { table: t, columns: [src, dst, _row_id] }
└─StreamExchange { dist: HashShard(t.dst) }
└─StreamTableScan { table: t, columns: [dst, _row_id] }
(10 rows)
To Reproduce
No response
Expected behavior
No response
Additional context
No response
st1page