-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-8021] [SQL] [PYSPARK] make Python read/write API consistent with Scala #6578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lol I've been working on this too in the last 20 mins. |
@@ -194,6 +219,48 @@ def __init__(self, df): | |||
self._sqlContext = df.sql_ctx | |||
self._jwrite = df._jdf.write() | |||
|
|||
def mode(self, saveMode): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since 1.4?
LGTM. We should add tests too (maybe later so we can make this in 1.4) |
Test build #33965 has finished for PR 6578 at commit
|
Test build #33969 has finished for PR 6578 at commit
|
Test build #33970 has finished for PR 6578 at commit
|
Jenkins, retest this please. |
This failed a totally unrelated streaming test, so I think it's okay. |
…th Scala add schema()/format()/options() for reader, add mode()/format()/options()/partitionBy() for writer cc rxin yhuai pwendell Author: Davies Liu <davies@databricks.com> Closes #6578 from davies/readwrite and squashes the following commits: 720d293 [Davies Liu] address comments b65dfa2 [Davies Liu] Update readwriter.py 1299ab6 [Davies Liu] make Python API consistent with Scala (cherry picked from commit 445647a) Signed-off-by: Patrick Wendell <patrick@databricks.com>
@pwendell but Python hasn't even run yet because it runs after the Scala streaming tests |
Test build #33993 has finished for PR 6578 at commit
|
Test build #870 has finished for PR 6578 at commit
|
…th Scala add schema()/format()/options() for reader, add mode()/format()/options()/partitionBy() for writer cc rxin yhuai pwendell Author: Davies Liu <davies@databricks.com> Closes apache#6578 from davies/readwrite and squashes the following commits: 720d293 [Davies Liu] address comments b65dfa2 [Davies Liu] Update readwriter.py 1299ab6 [Davies Liu] make Python API consistent with Scala
…th Scala add schema()/format()/options() for reader, add mode()/format()/options()/partitionBy() for writer cc rxin yhuai pwendell Author: Davies Liu <davies@databricks.com> Closes apache#6578 from davies/readwrite and squashes the following commits: 720d293 [Davies Liu] address comments b65dfa2 [Davies Liu] Update readwriter.py 1299ab6 [Davies Liu] make Python API consistent with Scala
add schema()/format()/options() for reader, add mode()/format()/options()/partitionBy() for writer
cc @rxin @yhuai @pwendell