Github user maropu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21853#discussion_r204609622
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -164,10 +164,20 @@ abstract class Optimizer(sessionCatalog: 
SessionCatalog)
        * Optimize all the subqueries inside expression.
        */
       object OptimizeSubqueries extends Rule[LogicalPlan] {
    +    private def removeTopLevelSorts(plan: LogicalPlan): LogicalPlan = {
    --- End diff --
    
    nit: `removeTopLevelSort`? (I think this func removes a single sort on the 
top?)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to