Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/21144#discussion_r183908521
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
---
@@ -36,6 +36,14 @@ object InterpretedPredicate {
case class InterpretedPredicate(expression: Expression) extends
BasePredicate {
override def eval(r: InternalRow): Boolean =
expression.eval(r).asInstanceOf[Boolean]
+
+ override def initialize(partitionIndex: Int): Unit = {
+ super.initialize(partitionIndex)
+ expression.foreach {
--- End diff --
Is it ok to use `foreachUp` instead? The initialization always does not
depend on their children?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]