Springmar opened a new pull request #2462:
URL: https://github.com/apache/hive/pull/2462
<!--
project JIRA: https://issues.apache.org/jira/browse/HIVE-24609
concise example :
public static void descFormatTable(String dbName, String tableName) {
try {
String confPath = "hive-site.xml";
HiveConf hc = new HiveConf();
hc.addResource(confPath);
HiveMetaStoreClient hmsc = new HiveMetaStoreClient(hc);
hmsc.alter_partitions(dbName, tableName, list);
} catch (TException e) {
e.printStackTrace();
}
}
-->
### What changes were proposed in this pull request?
<!--
class hierarchy :
org.apache.hadoop.hive.metastore.HiveMetaStoreClient
-->
### Why are the changes needed?
<!--
why it is a bug?
The HIVE2.1.1 underlying code provides alter_partitions to modify
Hive1.1.0 partition information, but does not expose it to the developer.
Therefore, using the HIVE2.1.1 alter_partitions API to modify Hive1.1.0
partition information will cause an error.
-->
### Does this PR introduce _any_ user-facing change?
<!--
No
-->
### How was this patch tested?
<!--
First, create a Hive1.1.0 Hadoop cluster. Second, use Hive to create a
partition table. Finally, use Hive2.1.1's alter_partitions method to modify the
partition table information.
-->
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]