mirror of
https://github.com/actiontech/dble.git
synced 2026-05-20 22:59:47 -05:00
lost distinct inner-1570
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user