Skip to content

Commit 1ad4d49

Browse files
authored
Relocate code to shrink effective diff
1 parent 05e4bcf commit 1ad4d49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ case class ProjectExec(projectList: Seq[NamedExpression], child: SparkPlan)
8787
case class FilterExec(condition: Expression, child: SparkPlan)
8888
extends UnaryExecNode with CodegenSupport with PredicateHelper {
8989

90-
// Mark this as empty. We'll evaluate the input during doConsume(). We don't want to evaluate
91-
// all the variables at the beginning to take advantage of short circuiting.
92-
override def usedInputs: AttributeSet = AttributeSet.empty
93-
9490
// Split out all the IsNotNulls from condition.
9591
private val (notNullPreds, otherPreds) = splitConjunctivePredicates(condition).partition {
9692
case IsNotNull(_) => true
@@ -102,6 +98,10 @@ case class FilterExec(condition: Expression, child: SparkPlan)
10298
.map { case n: IsNotNull => getImpliedNotNullExprIds(n) }
10399
.foldLeft(Set.empty[ExprId])(_ ++ _)
104100
}
101+
102+
// Mark this as empty. We'll evaluate the input during doConsume(). We don't want to evaluate
103+
// all the variables at the beginning to take advantage of short circuiting.
104+
override def usedInputs: AttributeSet = AttributeSet.empty
105105

106106
override def output: Seq[Attribute] = {
107107
child.output.map { a =>

0 commit comments

Comments
 (0)