Repository: spark
Updated Branches:
  refs/heads/branch-2.4 6148a77a5 -> 2d67be932


[SPARK-23207][SQL][FOLLOW-UP] Use `SQLConf.get.enableRadixSort` instead of 
`SparkEnv.get.conf.get(SQLConf.RADIX_SORT_ENABLED)`.

## What changes were proposed in this pull request?

This is a follow-up of #20393.
We should read the conf `"spark.sql.sort.enableRadixSort"` from `SQLConf` 
instead of `SparkConf`, i.e., use `SQLConf.get.enableRadixSort` instead of 
`SparkEnv.get.conf.get(SQLConf.RADIX_SORT_ENABLED)`, otherwise the config is 
never read.

## How was this patch tested?

Existing tests.

Closes #23046 from ueshin/issues/SPARK-23207/conf.

Authored-by: Takuya UESHIN <ues...@databricks.com>
Signed-off-by: Wenchen Fan <wenc...@databricks.com>
(cherry picked from commit dad2d826ae9138f06751e5d092531a9e06028c21)
Signed-off-by: Wenchen Fan <wenc...@databricks.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/2d67be93
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/2d67be93
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/2d67be93

Branch: refs/heads/branch-2.4
Commit: 2d67be932181e1b6e076393d5b1f9d01726988aa
Parents: 6148a77
Author: Takuya UESHIN <ues...@databricks.com>
Authored: Fri Nov 16 12:46:57 2018 +0800
Committer: Wenchen Fan <wenc...@databricks.com>
Committed: Fri Nov 16 12:47:34 2018 +0800

----------------------------------------------------------------------
 .../apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/2d67be93/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
index aba9488..64a2be8 100644
--- 
a/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
+++ 
b/sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
@@ -269,7 +269,7 @@ object ShuffleExchangeExec {
           }
           // The comparator for comparing row hashcode, which should always be 
Integer.
           val prefixComparator = PrefixComparators.LONG
-          val canUseRadixSort = 
SparkEnv.get.conf.get(SQLConf.RADIX_SORT_ENABLED)
+          val canUseRadixSort = SQLConf.get.enableRadixSort
           // The prefix computer generates row hashcode as the prefix, so we 
may decrease the
           // probability that the prefixes are equal when input rows choose 
column values from a
           // limited range.


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

Reply via email to