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

    https://github.com/apache/spark/pull/17899#discussion_r215843736
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -726,14 +726,36 @@ object CollapseRepartition extends Rule[LogicalPlan] {
     object CollapseWindow extends Rule[LogicalPlan] {
       def apply(plan: LogicalPlan): LogicalPlan = plan transformUp {
         case w1 @ Window(we1, ps1, os1, w2 @ Window(we2, ps2, os2, grandChild))
    -        if ps1 == ps2 && os1 == os2 && 
w1.references.intersect(w2.windowOutputSet).isEmpty &&
    --- End diff --
    
    I wouldn't include style changes


---

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

Reply via email to