sigmod commented on a change in pull request #32451:
URL: https://github.com/apache/spark/pull/32451#discussion_r627951238
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/objects.scala
##########
@@ -207,7 +211,8 @@ object ObjectSerializerPruning extends Rule[LogicalPlan] {
}
}
- def apply(plan: LogicalPlan): LogicalPlan = plan transform {
+ def apply(plan: LogicalPlan): LogicalPlan = plan.transformWithPruning(
+ _.containsAllPatterns(OBJECT_CONSUMER, PROJECT), ruleId) {
Review comment:
Done. Updated to use SERIALIZE_FROM_OBJECT.
(ObjectConsumer is a super class of SerializeFromObject. I thought that
OBJECT_CONSUMER could cover more subclasses of ObjectConsumer, but it turns out
other subclasses are not used in transform calls.)
--
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]