Repository: spark
Updated Branches:
  refs/heads/branch-2.2 0c4227940 -> 6c628e75e


[MINOR][SQL] Update the description of spark.sql.files.ignoreCorruptFiles and 
spark.sql.columnNameOfCorruptRecord

### What changes were proposed in this pull request?
1. The description of `spark.sql.files.ignoreCorruptFiles` is not accurate. 
When the file does not exist, we will issue the error message.
```
org.apache.spark.sql.AnalysisException: Path does not exist: 
file:/nonexist/path;
```

2. `spark.sql.columnNameOfCorruptRecord` also affects the CSV format. The 
current description only mentions JSON format.

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

Author: Xiao Li <gatorsm...@gmail.com>

Closes #18184 from gatorsmile/updateMessage.

(cherry picked from commit 2a780ac7fe21df7c336885f8e814c1b866e04285)
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/6c628e75
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6c628e75
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6c628e75

Branch: refs/heads/branch-2.2
Commit: 6c628e75e84e99acb365216cbaf413296ee9138e
Parents: 0c42279
Author: Xiao Li <gatorsm...@gmail.com>
Authored: Fri Jun 2 12:58:29 2017 -0700
Committer: Wenchen Fan <wenc...@databricks.com>
Committed: Fri Jun 2 12:58:37 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/spark/blob/6c628e75/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
----------------------------------------------------------------------
diff --git 
a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala 
b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
index e741b4e..1ea9eb5 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
@@ -345,7 +345,8 @@ object SQLConf {
     .createWithDefault(true)
 
   val COLUMN_NAME_OF_CORRUPT_RECORD = 
buildConf("spark.sql.columnNameOfCorruptRecord")
-    .doc("The name of internal column for storing raw/un-parsed JSON records 
that fail to parse.")
+    .doc("The name of internal column for storing raw/un-parsed JSON and CSV 
records that fail " +
+      "to parse.")
     .stringConf
     .createWithDefault("_corrupt_record")
 
@@ -535,8 +536,7 @@ object SQLConf {
 
   val IGNORE_CORRUPT_FILES = buildConf("spark.sql.files.ignoreCorruptFiles")
     .doc("Whether to ignore corrupt files. If true, the Spark jobs will 
continue to run when " +
-      "encountering corrupted or non-existing and contents that have been read 
will still be " +
-      "returned.")
+      "encountering corrupted files and the contents that have been read will 
still be returned.")
     .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