[ https://issues.apache.org/jira/browse/HIVE-24609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chris mar updated HIVE-24609: ----------------------------- Description: here is my java-code: {code:java} 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(); } } {code} It can not be execute,When I used the alter_partitions API in Hive 2.1.1 to modify the partition information in Hive 1.1.0, it didn't work. The underlying code implementation was responsive, but it wasn't exposed was: here is my hive-sql: {code:java} select ...... from A full outer join B on A.id = B.id {code} It can not be execute,I got an ArrayIndexOutOfBoundsException.Then I debug HiveServer2,found when compile sql in some situation and contains full outer join,there is an ArrayIndexOutOfBoundsException. Environment: CDH6.2.0 CDH5.15.2 (was: It can not be execute,When I used the alter_partitions API in Hive 2.1.1 to modify the partition information in Hive 1.1.0, it didn't work. The underlying code implementation was responsive, but it wasn't exposed here is my code: {quote}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(); } } {quote}) Summary: The alter_partitions method of hive2.1.1 cannot be used to modify partition information of hive1.1.0 (was: Fix ArrayIndexOutOfBoundsException when execute full outer join) > The alter_partitions method of hive2.1.1 cannot be used to modify partition > information of hive1.1.0 > ---------------------------------------------------------------------------------------------------- > > Key: HIVE-24609 > URL: https://issues.apache.org/jira/browse/HIVE-24609 > Project: Hive > Issue Type: Bug > Components: API > Affects Versions: 2.1.1 > Environment: CDH6.2.0 CDH5.15.2 > Reporter: jufeng li > Assignee: chris mar > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 1h > Remaining Estimate: 0h > > here is my java-code: > {code:java} > 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(); > } > } > {code} > > It can not be execute,When I used the alter_partitions API in Hive 2.1.1 to > modify the partition information in Hive 1.1.0, it didn't work. The > underlying code implementation was responsive, but it wasn't exposed -- This message was sent by Atlassian Jira (v8.3.4#803005)