aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTakeshi YAMAMURO <linguin.m.s@gmail.com>2016-06-11 15:12:21 -0700
committerReynold Xin <rxin@databricks.com>2016-06-11 15:12:21 -0700
commitcb5d933d86ac4afd947874f1f1c31c7154cb8249 (patch)
tree967e4aaea38134cd9423a63dc22e9846cc74dfaa /python
parentad102af169c7344b30d3b84aa16452fcdc22542c (diff)
downloadspark-cb5d933d86ac4afd947874f1f1c31c7154cb8249.tar.gz
spark-cb5d933d86ac4afd947874f1f1c31c7154cb8249.tar.bz2
spark-cb5d933d86ac4afd947874f1f1c31c7154cb8249.zip
[SPARK-15585][SQL] Add doc for turning off quotations
## What changes were proposed in this pull request? This pr is to add doc for turning off quotations because this behavior is different from `com.databricks.spark.csv`. ## How was this patch tested? Check behavior to put an empty string in csv options. Author: Takeshi YAMAMURO <linguin.m.s@gmail.com> Closes #13616 from maropu/SPARK-15585-2.
Diffstat (limited to 'python')
-rw-r--r--python/pyspark/sql/readwriter.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py
index 9208a527d2..7d1f18611b 100644
--- a/python/pyspark/sql/readwriter.py
+++ b/python/pyspark/sql/readwriter.py
@@ -320,7 +320,8 @@ class DataFrameReader(object):
it uses the default value, ``UTF-8``.
:param quote: sets the single character used for escaping quoted values where the
separator can be part of the value. If None is set, it uses the default
- value, ``"``.
+ value, ``"``. If you would like to turn off quotations, you need to set an
+ empty string.
:param escape: sets the single character used for escaping quotes inside an already
quoted value. If None is set, it uses the default value, ``\``.
:param comment: sets the single character used for skipping lines beginning with this
@@ -804,7 +805,8 @@ class DataFrameWriter(object):
set, it uses the default value, ``,``.
:param quote: sets the single character used for escaping quoted values where the
separator can be part of the value. If None is set, it uses the default
- value, ``"``.
+ value, ``"``. If you would like to turn off quotations, you need to set an
+ empty string.
:param escape: sets the single character used for escaping quotes inside an already
quoted value. If None is set, it uses the default value, ``\``
:param escapeQuotes: A flag indicating whether values containing quotes should always