Don't replace filter child when the correlated outer is sequence while...
Don't replace filter child when the correlated outer is sequence while translating expr to dxl [#128520573] When the outer child of correlated nest loop join is a partition table, and it has predicate on the partition key, Orca generated plan with dynamic partition selector and scan for the outer child, however while translating plan expression to DXL ORCA always assumed that the outer child is a relation instead of physical sequence, which caused Orca to replace the partition selector with filter. Here is an example to reproduce the issue: ``` create table t2(c int, d int); create table h(j int, i int) DISTRIBUTED BY (i) PARTITION by RANGE(j) (START (1) END (3) EVERY (1)); select (select h.i from t2) from h where h.j = 1; ``` This issue has been fixed in this patch and relevant tests are added.
Showing
此差异已折叠。
想要评论请 注册 或 登录