Repository: spark
Updated Branches:
  refs/heads/branch-2.0 7a0ed75ea -> 5c53442cc


[SPARK-15960][SQL] Rename `spark.sql.enableFallBackToHdfsForStats` config

## What changes were proposed in this pull request?
Since we are probably going to add more statistics related configurations in 
the future, I'd like to rename the newly added 
`spark.sql.enableFallBackToHdfsForStats` configuration option to 
`spark.sql.statistics.fallBackToHdfs`. This allows us to put all statistics 
related configurations in the same namespace.

## How was this patch tested?
None - just a usability thing

Author: Herman van Hovell <[email protected]>

Closes #13681 from hvanhovell/SPARK-15960.

(cherry picked from commit de99c3d0813de8e8f83374a0a85a73f7386fdfb8)
Signed-off-by: Reynold Xin <[email protected]>


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

Branch: refs/heads/branch-2.0
Commit: 5c53442cc098dd618ba1430962727c74b2de2e68
Parents: 7a0ed75
Author: Herman van Hovell <[email protected]>
Authored: Wed Jun 15 09:43:11 2016 -0700
Committer: Reynold Xin <[email protected]>
Committed: Wed Jun 15 09:43:17 2016 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/internal/SQLConf.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5c53442c/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
----------------------------------------------------------------------
diff --git 
a/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala 
b/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
index 27b1fff..6978b50 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
@@ -114,7 +114,7 @@ object SQLConf {
     .createWithDefault(10L * 1024 * 1024)
 
   val ENABLE_FALL_BACK_TO_HDFS_FOR_STATS =
-    SQLConfigBuilder("spark.sql.enableFallBackToHdfsForStats")
+    SQLConfigBuilder("spark.sql.statistics.fallBackToHdfs")
     .doc("If the table statistics are not available from table metadata enable 
fall back to hdfs." +
       " This is useful in determining if a table is small enough to use auto 
broadcast joins.")
     .booleanConf


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to