Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
code style
  • Loading branch information
huleilei committed Feb 27, 2018
commit f7d764efa435327ba34e829da53c16a6ec16f403
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import org.apache.spark.sql.catalyst.expressions._
trait QueryPlanConstraints { self: LogicalPlan =>

/**
* An [[ExpressionSet]] that contains an additional set of constraints about equality constraints
* and `isNotNull` constraints.
* An [[ExpressionSet]] that contains an additional set of constraints about equality
* constraints and `isNotNull` constraints.
*/
lazy val allConstraints: ExpressionSet = ExpressionSet(validConstraints
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should also be guarded by constraintPropagationEnabled

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need if (conf.constraintPropagationEnabled)

.union(inferAdditionalConstraints(validConstraints))
Expand Down