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

   ### What changes were proposed in this pull request?
   
   Fixes `DataFrameWriter.saveAsTable` to find the default source.
   
   ### Why are the changes needed?
   
   Currently `DataFrameWriter.saveAsTable` fails when `format` is not specified 
because protobuf defines `source` as required and it will be an empty string 
instead of `null`, then `DataFrameWriter` tries to find the data source `""`.
   
   The `source` field should be optional to let Spark decide the default source.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Users can call `saveAsTable` without `format`.
   
   ### How was this patch tested?
   
   Enabled related tests.


-- 
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