Fix bug when UNION ALL replicated tables with different numsegments(#10174)
`select c.c1, c.c2 from d1 c union all select a.c1, a.c2 from d2 a;` Both d1 and d2 are replicated tables, but the `numsegments` of them in gp_distribution_policy are different. This could happen during gpexpanding. The bug exists in function cdbpath_create_motion_path. Both `subpath->locus` and `locus` are SegmentGeneral, but the locuses are not equal Co-authored-by: NPengzhou Tang <ptang@pivotal.io> (cherry picked from commit 49749292)
Showing
想要评论请 注册 或 登录