Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/12817#discussion_r61679234
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
@@ -393,6 +393,45 @@ class DataFrameReader private[sql](sparkSession:
SparkSession) extends Logging {
* This function goes through the input once to determine the input
schema. To avoid going
* through the entire data once, specify the schema explicitly using
[[schema]].
*
+ * You can set the following CSV-specific options to deal with CSV files:
+ * <li>`sep` or `delimiter` (default `,`): sets the single character as
a delimiter for each
+ * field and value.</li>
+ * <li>`encoding` or `charset` (default `UTF-8`): decodes the CSV files
by the given encoding
+ * type.</li>
+ * <li>`quote` (default `"`): sets the single character used for
escaping quoted values where
+ * the delimiter can be part of the value.</li>
+ * <li>`escape` (default `\`): sets the single character used for
escaping quotes inside
+ * an already quoted value.</li>
+ * <li>`comment` (default empty string): sets the single character used
for skipping lines beginning
--- End diff --
I am less sure of `empty string` is okay.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]