diff options
author | Cazen <Cazen@korea.com> | 2016-01-03 17:01:19 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-01-03 17:01:19 -0800 |
commit | b8410ff9ce8cef7159a7364272e4c4234c5b474f (patch) | |
tree | 2da8cdd8496644f9d71937cddca54844c6db1ee2 /python | |
parent | 7b92922f7f7ba4ff398dcbd734e8305ba03da87b (diff) | |
download | spark-b8410ff9ce8cef7159a7364272e4c4234c5b474f.tar.gz spark-b8410ff9ce8cef7159a7364272e4c4234c5b474f.tar.bz2 spark-b8410ff9ce8cef7159a7364272e4c4234c5b474f.zip |
[SPARK-12537][SQL] Add option to accept quoting of all character backslash quoting mechanism
We can provides the option to choose JSON parser can be enabled to accept quoting of all character or not.
Author: Cazen <Cazen@korea.com>
Author: Cazen Lee <cazen.lee@samsung.com>
Author: Cazen Lee <Cazen@korea.com>
Author: cazen.lee <cazen.lee@samsung.com>
Closes #10497 from Cazen/master.
Diffstat (limited to 'python')
-rw-r--r-- | python/pyspark/sql/readwriter.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py index a3d7eca04b..a2771daabe 100644 --- a/python/pyspark/sql/readwriter.py +++ b/python/pyspark/sql/readwriter.py @@ -160,6 +160,8 @@ class DataFrameReader(object): quotes * ``allowNumericLeadingZeros`` (default ``false``): allows leading zeros in numbers \ (e.g. 00012) + * ``allowBackslashEscapingAnyCharacter`` (default ``false``): allows accepting quoting \ + of all character using backslash quoting mechanism >>> df1 = sqlContext.read.json('python/test_support/sql/people.json') >>> df1.dtypes |