[GitHub] spark pull request #20530: [SPARK-23349][SQL]ShuffleExchangeExec: Duplicate ...

2018-05-12 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/spark/pull/20530


---

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



[GitHub] spark pull request #20530: [SPARK-23349][SQL]ShuffleExchangeExec: Duplicate ...

2018-02-07 Thread wujianping10043419
GitHub user wujianping10043419 opened a pull request:

https://github.com/apache/spark/pull/20530

[SPARK-23349][SQL]ShuffleExchangeExec: Duplicate and redundant type 
determination for ShuffleManager Object

## What changes were proposed in this pull request?
org.apache.spark.sql.execution.exchange.ShuffleExchangeExec: 

There is a nested "if or else" branch within the 
"needtocopyobjectsbeforguffle()" function.
The \ condition in the first layer "if" has the same 
value as the \ condition in the second layer "if", that is, 
\ must be true when \ is true.
In addition, the \ condition will be used in the 
second layer "if" and  should not be calculated until needed.

It's to remove the \ condition in the second layer " 
if" and to move the \ calculation backward

## How was this patch tested?

Existing tests

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/wujianping10043419/spark-1 wujp-0107-home

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/spark/pull/20530.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 #20530


commit db50cccd1e3fd34478fc72500917211f9b3bf800
Author: wujianping10043419 
Date:   2018-02-07T10:59:50Z

[SPARK-23349][SQL]ShuffleExchangeExec: Duplicate and redundant type 
determination for ShuffleManager Object




---

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