This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 19998ce97a1 [fix](nereids)only enable colocate scan for one phase
global parttion topn in some condition #26473 (#26481)
19998ce97a1 is described below
commit 19998ce97a1907b783fc486c8f624df6f17e39b3
Author: starocean999 <[email protected]>
AuthorDate: Mon Nov 6 22:55:03 2023 +0800
[fix](nereids)only enable colocate scan for one phase global parttion topn
in some condition #26473 (#26481)
---
.../apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
index 3da1e9917bf..58e0cd80c74 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java
@@ -1523,8 +1523,8 @@ public class PhysicalPlanTranslator extends
DefaultPlanVisitor<PlanFragment, Pla
addPlanRoot(inputFragment, partitionSortNode, partitionTopN);
// in pipeline engine, we use parallel scan by default, but it broke
the rule of data distribution
// we need turn of parallel scan to ensure to get correct result.
- // TODO: nereids forbid all parallel scan under PhysicalSetOperation
temporary
- if
(findOlapScanNodesByPassExchangeAndJoinNode(inputFragment.getPlanRoot())) {
+ if (inputFragment.getDataPartition().getType() != TPartitionType.RANDOM
+ &&
findOlapScanNodesByPassExchangeAndJoinNode(inputFragment.getPlanRoot())) {
inputFragment.setHasColocatePlanNode(true);
}
return inputFragment;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]