Skip to content

Commit

Permalink
modify the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Dec 26, 2023
1 parent 1d68554 commit 23fe84e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public ComparisonInferInfo(InferType inferType,
public Set<Expression> infer(Set<Expression> predicates) {
Set<Expression> inferred = Sets.newHashSet();
for (Expression predicate : predicates) {
// if we support more predicate infer, we should add .withInferred(this.isInferred())
// to mark the predicate is from infer when call withChildren method
if (!(predicate instanceof ComparisonPredicate)) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ public static boolean checkSlotConstant(Slot slot, Set<Expression> predicates) {
}

/**
* isInferred
* Check the expression is inferred or not, if inferred return true, nor return false
*/
public static boolean isInferred(Expression expression) {
return expression.accept(new DefaultExpressionVisitor<Boolean, Void>() {
Expand Down

0 comments on commit 23fe84e

Please sign in to comment.