Skip to content

Commit d283028

Browse files
committed
constraints -> predicates
1 parent 47eadf4 commit d283028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/QueryPlanConstraints.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ trait ConstraintHelper {
6464
var inferredConstraints = Set.empty[Expression]
6565
// IsNotNull should be constructed by `constructIsNotNullConstraints`.
6666
val predicates = constraints.filterNot(_.isInstanceOf[IsNotNull])
67-
constraints.foreach {
67+
predicates.foreach {
6868
case eq @ EqualTo(l: Attribute, r: Attribute) =>
6969
val candidateConstraints = predicates - eq
7070
inferredConstraints ++= replaceConstraints(candidateConstraints, l, r)

0 commit comments

Comments
 (0)