maropu commented on a change in pull request #32228: URL: https://github.com/apache/spark/pull/32228#discussion_r616615387
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala ########## @@ -772,9 +772,6 @@ object ColumnPruning extends Rule[LogicalPlan] { f.copy(child = prunedChild(child, f.references)) case e @ Expand(_, _, child) if !child.outputSet.subsetOf(e.references) => e.copy(child = prunedChild(child, e.references)) - case s @ ScriptTransformation(_, _, _, child, _) - if !child.outputSet.subsetOf(s.references) => - s.copy(child = prunedChild(child, s.references)) Review comment: Ah, okay. I remembered that `ScriptTransformation` always has a projected list of exprs in it's child now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org