ueshin opened a new pull request, #40356:
URL: https://github.com/apache/spark/pull/40356

   ### What changes were proposed in this pull request?
   
   Fixes `DataFrameWriter.save` to work without path parameter.
   
   ### Why are the changes needed?
   
   `DataFrameWriter.save` should work without table name or path parameter 
because some data sources, such as jdbc, noop, works without those parameters.
   
   ```py
   >>> print(spark.range(10).write.format("noop").mode("append").save())
   Traceback (most recent call last):
   ...
   AssertionError: Invalid configuration of WriteCommand, neither path or table 
present.
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   The data sources that don't need path or table parameter will work.
   
   ```py
   >>> print(spark.range(10).write.format("noop").mode("append").save())
   None
   ```
   
   ### How was this patch tested?
   
   Added a test.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to