You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/03/09 20:57:00 UTC

[jira] [Commented] (SPARK-42733) df.write.format().save() should support calling with no path or table name

    [ https://issues.apache.org/jira/browse/SPARK-42733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17698608#comment-17698608 ] 

Apache Spark commented on SPARK-42733:
--------------------------------------

User 'ueshin' has created a pull request for this issue:
https://github.com/apache/spark/pull/40356

> df.write.format().save() should support calling with no path or table name
> --------------------------------------------------------------------------
>
>                 Key: SPARK-42733
>                 URL: https://issues.apache.org/jira/browse/SPARK-42733
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Connect
>    Affects Versions: 3.4.0
>            Reporter: Martin Grund
>            Priority: Major
>
> When calling `session.range(5).write.format("xxx").options().save()` Spark Connect currently throws an assertion error because it expects that either path or tableName are present. According to our current PySpark implementation that is not necessary though.
>        
> {code:python}
> if format is not None:
>             self.format(format)
>         if path is None:
>             self._jwrite.save()
>         else:
>             self._jwrite.save(path)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org