gengliangwang commented on code in PR #37295:
URL: https://github.com/apache/spark/pull/37295#discussion_r930675492


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -1948,7 +1946,9 @@ object PushPredicateThroughJoin extends Rule[LogicalPlan] 
with PredicateHelper {
 /**
  * This rule is applied by both normal and AQE Optimizer, and optimizes Limit 
operators by:
  * 1. Eliminate [[Limit]]/[[GlobalLimit]] operators if it's child max row <= 
limit.
- * 2. Combines two adjacent [[Limit]] operators into one, merging the
+ * 2. Replace [[Limit]]/[[LocalLimit]]/[[GlobalLimit]] operators to empty 
[[LocalRelation]]

Review Comment:
   ```suggestion
    * 2. Replace [[Limit]]/[[LocalLimit]]/[[GlobalLimit]] operators with empty 
[[LocalRelation]]
   ```



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