GitHub user maropu opened a pull request: https://github.com/apache/spark/pull/21754
[SPARK-24705][SQL] Cannot reuse an exchange operator with an adaptive execution coordinator ## What changes were proposed in this pull request? This pr fixed a bug to wrongly reuse an exchange operator with an adaptive execution coordinator. If the coordinator defined, the exchange has an independent shuffle strategy. Therefore, `ReuseExchange` cannot regard the exchange as being reusable. This pr modified code to filter out these exchanges in `ReuseExchange`. ## How was this patch tested? Added tests in `ExchangeCoordinatorSuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/maropu/spark SPARK-24705-2 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21754.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21754 ---- commit 32c4cb2881a791f459bb040eebc41a54d0d54384 Author: Takeshi Yamamuro <yamamuro@...> Date: 2018-07-12T02:35:12Z Fix ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org