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 23fe84e commit 8525ed2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public ComparisonInferInfo(InferType inferType,
public Set<Expression> infer(Set<Expression> predicates) {
Set<Expression> inferred = Sets.newHashSet();
for (Expression predicate : predicates) {
// if we support more infer predicate expression type, we should impl withInferred() method.
// And should add inferred props in withChildren() method just like ComparisonPredicate,
// and it's subclass, to mark the predicate is from infer.
if (!(predicate instanceof ComparisonPredicate)) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public Expression withChildren(List<Expression> children) {
}

public Expression withInferred(boolean inferred) {
throw new RuntimeException();
throw new RuntimeException("current expression has not impl the withInferred method");
}

/**
Expand Down

0 comments on commit 8525ed2

Please sign in to comment.