This is an automated email from the ASF dual-hosted git repository.
starocean999 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 664164fdff5 [fix](nereids)the keys of agg table with random distribute
are not unique (#37881)
664164fdff5 is described below
commit 664164fdff5681b31f2b0831c0795988f2d869dd
Author: starocean999 <[email protected]>
AuthorDate: Thu Jul 18 15:37:29 2024 +0800
[fix](nereids)the keys of agg table with random distribute are not unique
(#37881)
---
.../org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java
index 785ebe90363..ef3d4c43d82 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalOlapScan.java
@@ -507,7 +507,7 @@ public class LogicalOlapScan extends LogicalCatalogRelation
implements OlapScan
Plan originalPlan = cache.getOriginalPlan();
builder.addUniqueSlot(originalPlan.getLogicalProperties().getTrait());
builder.replaceUniqueBy(constructReplaceMap(mtmv));
- } else if (getTable().getKeysType().isAggregationFamily()) {
+ } else if (getTable().getKeysType().isAggregationFamily() &&
!getTable().isRandomDistribution()) {
ImmutableSet.Builder<Slot> uniqSlots =
ImmutableSet.builderWithExpectedSize(outputSet.size());
for (Slot slot : outputSet) {
if (!(slot instanceof SlotReference)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]