vranes commented on code in PR #57157:
URL: https://github.com/apache/spark/pull/57157#discussion_r3555309840
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -1135,6 +1135,17 @@ object ColumnPruning extends Rule[LogicalPlan] {
.map(_._2)
p.copy(child = g.copy(child = newChild, unrequiredChildIndex =
unrequiredIndices))
+ // prune unrequired pass-through columns from child of BinBy.
+ case p @ Project(_, b: BinBy) if p.references != b.outputSet =>
Review Comment:
Makes sense, thanks! Switched to the suggested shape.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]