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

   ### What changes were proposed in this pull request?
   As a syntax guard for downstream datasource that could handle empty schema, 
we enforce user to use `()` during table creation queries.
   
   E.g. `CREATE TABLE table () USING parquet`.
   
   Note that the `[CREATE OR] REPLACE` is excluded from this change due to 
additional complexity.
   
   ### Why are the changes needed?
   To explicitly make sure user are aware that they are creating a table with 
no columns.
   
   ### Does this PR introduce _any_ user-facing change?
   Existing code that calls `CREATE TABLE table USING ...` will fail. 
   
   ### How was this patch tested?
   New unit 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