Github user heary-cao commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21139#discussion_r183929216
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -618,6 +619,18 @@ object CollapseRepartition extends Rule[LogicalPlan] {
       }
     }
     
    +/**
    + * Exchanged the adjacent logical window operator according to the order 
field of window.
    + */
    +object ExchangeWindowWithOrderField extends Rule[LogicalPlan] {
    +  def apply(plan: LogicalPlan): LogicalPlan = plan transformUp {
    +    case w1 @ Window(_, _, orderSpec1, w2 @ Window(_, _, orderSpec2, 
child2))
    +      if orderSpec1.size > orderSpec2.size =>
    --- End diff --
    
    @hvanhovell , Sorry, I fix it. thanks.


---

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

Reply via email to