diff options
author | Sean Zhong <seanzhong@databricks.com> | 2016-05-18 16:00:02 +0800 |
---|---|---|
committer | Cheng Lian <lian@databricks.com> | 2016-05-18 16:00:02 +0800 |
commit | 6e02aec44b9e5bc2ada55cb612f26e6ba000c23e (patch) | |
tree | 4c5b2a9039a833f81efdb0fa7cec5f247c59cab6 /mllib | |
parent | 411c04adb596c514f2634efd5f5d126e12b05df7 (diff) | |
download | spark-6e02aec44b9e5bc2ada55cb612f26e6ba000c23e.tar.gz spark-6e02aec44b9e5bc2ada55cb612f26e6ba000c23e.tar.bz2 spark-6e02aec44b9e5bc2ada55cb612f26e6ba000c23e.zip |
[SPARK-15334][SQL] HiveClient facade not compatible with Hive 0.12
## What changes were proposed in this pull request?
HiveClient facade is not compatible with Hive 0.12.
This PR Fixes the following compatibility issues:
1. `org.apache.spark.sql.hive.client.HiveClientImpl` use `AddPartitionDesc(db, table, ignoreIfExists)` to create partitions, however, Hive 0.12 doesn't have this constructor for `AddPartitionDesc`.
2. `HiveClientImpl` uses `PartitionDropOptions` when dropping partition, however, class `PartitionDropOptions` doesn't exist in Hive 0.12.
3. Hive 0.12 doesn't support adding permanent functions. It is not valid to call `org.apache.hadoop.hive.ql.metadata.Hive.createFunction`, `org.apache.hadoop.hive.ql.metadata.Hive.alterFunction`, and `org.apache.hadoop.hive.ql.metadata.Hive.alterFunction`
4. `org.apache.spark.sql.hive.client.VersionsSuite` doesn't have enough test coverage for different hive versions 0.12, 0.13, 0.14, 1.0.0, 1.1.0, 1.2.0.
## How was this patch tested?
Unit test.
Author: Sean Zhong <seanzhong@databricks.com>
Closes #13127 from clockfly/versionSuite.
Diffstat (limited to 'mllib')
0 files changed, 0 insertions, 0 deletions