Yikf commented on code in PR #37129:
URL: https://github.com/apache/spark/pull/37129#discussion_r918140392


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -230,6 +230,7 @@ abstract class Optimizer(catalogManager: CatalogManager)
       // non-nullable when an empty relation child of a Union is removed
       UpdateAttributeNullability) :+
     Batch("Optimize One Row Plan", fixedPoint, OptimizeOneRowPlan) :+
+    Batch("Push Local TopK Through Outer Join", FixedPoint(1), 
PushLocalTopKThroughOuterJoin) :+

Review Comment:
   This batch should be enforcement idempotent, we should use `Once` to check 
idempotent?



-- 
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]

Reply via email to