Github user xwu0226 commented on the pull request:
https://github.com/apache/spark/pull/12132#issuecomment-210064938
So we have 3 cases:
1. Tables created with Hive syntax -- we generate DDL in hive syntax
2. Tables created with datasource syntax -- we generate DDL in datasource
syntax `...USING...OPTIONS(...)`
3. Tables created from dataframe -- If the table metadata contains the
features that are not supported in datasource syntax, generate create table
with dataframe API. The reason for this condition is that under the cover there
is no indication of whether the table is created with dataframe API or not, it
is just a datasource table by `spark.sql.sources.provider`.
@yhuai what do you think? Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]