[
https://issues.apache.org/jira/browse/SPARK-16942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15460530#comment-15460530
]
Apache Spark commented on SPARK-16942:
--------------------------------------
User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/14946
> CREATE TABLE LIKE generates External table when source table is an External
> Hive Serde table
> --------------------------------------------------------------------------------------------
>
> Key: SPARK-16942
> URL: https://issues.apache.org/jira/browse/SPARK-16942
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Xiao Li
> Assignee: Xiao Li
> Fix For: 2.1.0
>
>
> When the table type of source table is an EXTERNAL Hive serde table, {{CREATE
> TABLE LIKE}} will generate an EXTERNAL table. The expected table type should
> be MANAGED
> The table type of the generated table is `EXTERNAL` when the source table is
> an external Hive Serde table. Currently, we explicitly set it to `MANAGED`,
> but Hive is checking the table property `EXTERNAL` to decide whether the
> table is `EXTERNAL` or not. (See
> https://github.com/apache/hive/blob/master/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L1407-L1408)
> Thus, the created table is still `EXTERNAL`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]