diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/EquivalenceClass.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/EquivalenceClass.java index 2d9880c23bcaa4..9e5c746de872a3 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/EquivalenceClass.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/EquivalenceClass.java @@ -56,11 +56,11 @@ public void addEquivalenceClass(SlotReference slot0, SlotReference slot1) { equivalenceSlotMap.put(newRef, slot0Sets); } } else if (slot0Sets != null) { - // p1 present, we need to merge into it + // slot0Sets present, we need to merge into it slot0Sets.add(slot1); equivalenceSlotMap.put(slot1, slot0Sets); } else if (slot1Sets != null) { - // p2 present, we need to merge into it + // slot1Sets present, we need to merge into it slot1Sets.add(slot0); equivalenceSlotMap.put(slot0, slot1Sets); } else {