aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/tests.py
diff options
context:
space:
mode:
authorCheolsoo Park <cheolsoop@netflix.com>2015-06-29 00:13:39 -0700
committerReynold Xin <rxin@databricks.com>2015-06-29 00:13:39 -0700
commitac2e17b01c0843d928a363d2cc4faf57ec8c8b47 (patch)
treea06efb0edf4c0ab4af7abeb1cd0bb3870799deb7 /python/pyspark/sql/tests.py
parent0b10662fef11a56f82144b4953d457738e6961ae (diff)
downloadspark-ac2e17b01c0843d928a363d2cc4faf57ec8c8b47.tar.gz
spark-ac2e17b01c0843d928a363d2cc4faf57ec8c8b47.tar.bz2
spark-ac2e17b01c0843d928a363d2cc4faf57ec8c8b47.zip
[SPARK-8355] [SQL] Python DataFrameReader/Writer should mirror Scala
I compared PySpark DataFrameReader/Writer against Scala ones. `Option` function is missing in both reader and writer, but the rest seems to all match. I added `Option` to reader and writer and updated the `pyspark-sql` test. Author: Cheolsoo Park <cheolsoop@netflix.com> Closes #7078 from piaozhexiu/SPARK-8355 and squashes the following commits: c63d419 [Cheolsoo Park] Fix version 524e0aa [Cheolsoo Park] Add option function to df reader and writer
Diffstat (limited to 'python/pyspark/sql/tests.py')
-rw-r--r--python/pyspark/sql/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/pyspark/sql/tests.py b/python/pyspark/sql/tests.py
index e6a434e4b2..ffee43a94b 100644
--- a/python/pyspark/sql/tests.py
+++ b/python/pyspark/sql/tests.py
@@ -564,6 +564,7 @@ class SQLTests(ReusedPySparkTestCase):
self.assertEqual(sorted(df.collect()), sorted(actual.collect()))
df.write.mode("overwrite").options(noUse="this options will not be used in save.")\
+ .option("noUse", "this option will not be used in save.")\
.format("json").save(path=tmpPath)
actual =\
self.sqlCtx.read.format("json")\