Skip to content

Commit

Permalink
Two more Python bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Jul 1, 2016
1 parent fad616f commit 2e5f2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/sql/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
it uses the value specified in
``spark.sql.columnNameOfCorruptRecord``.
>>> json_sdf = spark.readStream.json(tempfile.mkdtemp()), schema = sdf_schema)
>>> json_sdf = spark.readStream.json(tempfile.mkdtemp(), schema = sdf_schema)
>>> json_sdf.isStreaming
True
>>> json_sdf.schema == sdf_schema
Expand Down Expand Up @@ -510,7 +510,7 @@ def csv(self, path, schema=None, sep=None, encoding=None, quote=None, escape=Non
* ``DROPMALFORMED`` : ignores the whole corrupted records.
* ``FAILFAST`` : throws an exception when it meets corrupted records.
>>> csv_sdf = spark.readStream.csv(tempfile.mkdtemp()), schema = sdf_schema)
>>> csv_sdf = spark.readStream.csv(tempfile.mkdtemp(), schema = sdf_schema)
>>> csv_sdf.isStreaming
True
>>> csv_sdf.schema == sdf_schema
Expand Down

0 comments on commit 2e5f2ef

Please sign in to comment.