Skip to content

Commit

Permalink
fix feut
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Jan 3, 2025
1 parent d419299 commit 6614e8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ public void computeUniform(DataTrait.Builder builder) {
Optional<Expression> value = entry.getValue();
if (!value.isPresent() || value.get() instanceof NullLiteral || common.contains(value.get())) {
newSlotUniformValue.put(entry.getKey(), value);
} else {
newSlotUniformValue.put(entry.getKey(), Optional.empty());
}
}
builder.addUniformSlotValueMap(newSlotUniformValue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ void testAgg() {
.rewrite()
.getPlan();
System.out.println(plan.getLogicalProperties().getTrait());
Assertions.assertTrue(plan.getLogicalProperties()
.getTrait().isUniform(plan.getOutput().get(0)));
Assertions.assertTrue(plan.getLogicalProperties().getTrait().isUniform(plan.getOutput().get(0))
&& !plan.getLogicalProperties().getTrait().isUniformAndNotNull(plan.getOutput().get(0)));
}

@Test
Expand Down

0 comments on commit 6614e8c

Please sign in to comment.