Repository: spark
Updated Branches:
  refs/heads/master 59e3eb5af -> e18d02c5a


[SPARK-17947][SQL] Add Doc and Comment about spark.sql.debug

### What changes were proposed in this pull request?
Just document the impact of `spark.sql.debug`:

When enabling the debug, Spark SQL internal table properties are not filtered 
out; however, some related DDL commands (e.g., Analyze Table and CREATE TABLE 
LIKE) might not work properly.

### How was this patch tested?
N/A

Author: gatorsmile <gatorsm...@gmail.com>

Closes #15494 from gatorsmile/addDocForSQLDebug.


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

Branch: refs/heads/master
Commit: e18d02c5a8f8af2e42079ab414f5d84b3e1a279e
Parents: 59e3eb5
Author: gatorsmile <gatorsm...@gmail.com>
Authored: Mon Oct 17 12:08:25 2016 +0800
Committer: Wenchen Fan <wenc...@databricks.com>
Committed: Mon Oct 17 12:08:25 2016 +0800

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


http://git-wip-us.apache.org/repos/asf/spark/blob/e18d02c5/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 e73d018..a055e01 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
@@ -934,8 +934,11 @@ object StaticSQLConf {
     .intConf
     .createWithDefault(4000)
 
+  // When enabling the debug, Spark SQL internal table properties are not 
filtered out; however,
+  // some related DDL commands (e.g., ANALYZE TABLE and CREATE TABLE LIKE) 
might not work properly.
   val DEBUG_MODE = buildConf("spark.sql.debug")
     .internal()
+    .doc("Only used for internal debugging. Not all functions are supported 
when it is enabled.")
     .booleanConf
     .createWithDefault(false)
 }


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

Reply via email to