[fix](planner)wrong result when has order by under join (#15974)

This commit is contained in:
morrySnow
2023-01-17 20:20:56 +08:00
committed by GitHub
parent e6a5d3375e
commit 02a7995171
2 changed files with 45 additions and 2 deletions

View File

@ -84,9 +84,10 @@ public class ExchangeNode extends PlanNode {
if (inputNode.getFragment().isPartitioned()) {
limit = inputNode.limit;
}
offset = inputNode.offset;
if (!(inputNode instanceof ExchangeNode)) {
offset = inputNode.offset;
}
computeTupleIds();
}
public boolean isMergingExchange() {