gengliangwang commented on a change in pull request #24271: [SPAR-27342][SQL] 
Optimize Limit 0 queries
URL: https://github.com/apache/spark/pull/24271#discussion_r272032794
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ##########
 @@ -172,6 +172,8 @@ abstract class Optimizer(sessionCatalog: SessionCatalog)
     // optimizer rules that are triggered when there is a filter
     // (e.g. InferFiltersFromConstraints). If we run this batch earlier, the 
query becomes just
     // LocalRelation and does not trigger many rules.
 
 Review comment:
   The comment should be before the batch `LocalRelation early`.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to