Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Dec 29, 2023
1 parent c88a81b commit 0a98764
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,13 @@ public List<Rule> buildRules() {
}
Expression childExpr = filter.getConjuncts().iterator().next().children().get(0);
if (childExpr instanceof SlotReference) {
String exprName = ((SlotReference) childExpr).getName();
return "__DORIS_DELETE_SIGN__".equalsIgnoreCase(exprName);
return ((SlotReference) childExpr).getColumn().get().isDeleteSignColumn();
}
return false;
})
)
.when(agg -> enablePushDownMinMaxOnUnique())
.when(agg -> agg.getGroupByExpressions().size() == 0)
.when(agg -> agg.getGroupByExpressions().isEmpty())
.when(agg -> {
Set<AggregateFunction> funcs = agg.getAggregateFunctions();
return !funcs.isEmpty() && funcs.stream()
Expand All @@ -185,15 +184,15 @@ public List<Rule> buildRules() {
}
Expression childExpr = filter.getConjuncts().iterator().next()
.children().get(0);
if (childExpr instanceof SlotReference) {
String exprName = ((SlotReference) childExpr).getName();
return "__DORIS_DELETE_SIGN__".equalsIgnoreCase(exprName);
}
return false;
if (childExpr instanceof SlotReference) {
return ((SlotReference) childExpr).getColumn().get()
.isDeleteSignColumn();
}
return false;
}))
)
.when(agg -> enablePushDownMinMaxOnUnique())
.when(agg -> agg.getGroupByExpressions().size() == 0)
.when(agg -> agg.getGroupByExpressions().isEmpty())
.when(agg -> {
Set<AggregateFunction> funcs = agg.getAggregateFunctions();
return !funcs.isEmpty()
Expand Down

0 comments on commit 0a98764

Please sign in to comment.