Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21754#discussion_r203630277
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/Exchange.scala 
---
    @@ -85,14 +85,20 @@ case class ReusedExchangeExec(override val output: 
Seq[Attribute], child: Exchan
      */
     case class ReuseExchange(conf: SQLConf) extends Rule[SparkPlan] {
     
    +  private def supportReuseExchange(exchange: Exchange): Boolean = exchange 
match {
    +    // If a coordinator defined in an exchange operator, the exchange 
cannot be reused
    --- End diff --
    
    what if it's the same coordinator? can we reuse?


---

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

Reply via email to