viirya opened a new pull request #24938: [SPARK-27946][SQL] Hive DDL to Spark 
DDL conversion USING "show create table"
URL: https://github.com/apache/spark/pull/24938
 
 
   ## What changes were proposed in this pull request?
   
   This patch adds a DDL command `SHOW CREATE TABLE AS SPARK`. It is used to 
generate Spark DDL for a Hive table.
   
   For Hive serde to data source conversion, this uses the existing mapping 
inside `HiveSerDe`. If can't find a mapping there, throws an analysis exception 
on unsupported serde configuration.
   
   It is arguably that some Hive fileformat + row serde might be mapped to 
Spark data source, e.g., CSV. It is not included in this PR. Can be a follow-up.
   
   For Hive serde properties, for now this doesn't save it to Spark DDL because 
it may not useful to keep Hive serde properties in Spark table.
   
   ## How was this patch tested?
   
   Added 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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to