lost distinct inner-1570

This commit is contained in:
yanhuqing666
2021-12-29 13:41:43 +08:00
committed by Huqing Yan
parent acd5bdba95
commit c68cfd22b4
2 changed files with 2 additions and 0 deletions
@@ -176,6 +176,7 @@ public class ERJoinChooser {
}
// others' node is the join units which can not optimize, just merge them
JoinNode ret = (JoinNode) makeJoinNode(others, charsetIndex);
ret.setDistinct(orgNode.isDistinct());
ret.setOrderBys(orgNode.getOrderBys());
ret.setGroupBys(orgNode.getGroupBys());
ret.select(orgNode.getColumnsSelected());
@@ -133,6 +133,7 @@ public class JoinChooser {
// others' node is the join units which can not optimize, just merge them
JoinNode ret = makeJoinWithCartesianNode(relationJoin);
ret.setDistinct(orgNode.isDistinct());
ret.setOrderBys(orgNode.getOrderBys());
ret.setGroupBys(orgNode.getGroupBys());
ret.select(orgNode.getColumnsSelected());