GitHub user yhuai opened a pull request:
https://github.com/apache/spark/pull/12275
[SPARK-14506] [SQL] HiveClientImpl's toHiveTable misses a table property
for external tables
## What changes were proposed in this pull request?
For an external table's metadata (in Hive's representation), its table type
needs to be EXTERNAL_TABLE. Also, there needs to be a field called EXTERNAL set
in the table property with a value of TRUE (for a MANAGED_TABLE it will be
FALSE). HiveClientImpl's toHiveTable misses to set this table property.
## How was this patch tested?
Added a new test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yhuai/spark SPARK-14506
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12275.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12275
----
commit a732e7001f54f0d706646954e566f575b9157d25
Author: Yin Huai <[email protected]>
Date: 2016-04-09T19:04:21Z
[SPARK-14506] [SQL] HiveClientImpl's toHiveTable misses a table property
for external tables
----
---
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]