File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,12 @@ public void computeUniform(DataTrait.Builder builder) {
245
245
builder .addUniformSlotAndLiteral (proj .toSlot (), proj .child (0 ));
246
246
} else if (proj .child (0 ) instanceof Slot ) {
247
247
Slot slot = (Slot ) proj .child (0 );
248
- if (child (0 ).getLogicalProperties ().getTrait ().isUniformAndHasConstValue (slot )) {
248
+ DataTrait childTrait = child (0 ).getLogicalProperties ().getTrait ();
249
+ if (childTrait .isUniformAndHasConstValue (slot )) {
249
250
builder .addUniformSlotAndLiteral (proj .toSlot (),
250
251
child (0 ).getLogicalProperties ().getTrait ().getUniformValue (slot ).get ());
252
+ } else if (childTrait .isUniform (slot )) {
253
+ builder .addUniformSlot (proj .toSlot ());
251
254
}
252
255
}
253
256
}
You can’t perform that action at this time.
0 commit comments