[ https://issues.apache.org/jira/browse/HIVE-6687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13946279#comment-13946279 ]
Lefty Leverenz commented on HIVE-6687: -------------------------------------- Added the new configuration parameter to the wiki here: * [Configuration Properties: hive.resultset.use.unique.column.names |https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.resultset.use.unique.column.names] After HIVE-6037 gets committed, this parameter will have to be added to HiveConf.java again -- see HIVE-6586: * [comment for hive.resultset.use.unique.column.names |https://issues.apache.org/jira/browse/HIVE-6586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13946274#comment-13946274] > JDBC ResultSet fails to get value by qualified projection name > -------------------------------------------------------------- > > Key: HIVE-6687 > URL: https://issues.apache.org/jira/browse/HIVE-6687 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 0.12.0 > Reporter: Laljo John Pullokkaran > Assignee: Laljo John Pullokkaran > Labels: documentation > Fix For: 0.13.0 > > Attachments: HIVE-6687.4.patch > > > Getting value from result set using fully qualified name would throw > exception. Only solution today is to use position of the column as opposed to > column label. > {code} > String sql = "select r1.x, r2.x from r1 join r2 on r1.y=r2.y"; > ResultSet res = stmt.executeQuery(sql); > res.getInt("r1.x"); > {code} > res.getInt("r1.x"); would throw exception unknown column even though sql > specifies it. > Fix is to fix resultsetschema in semantic analyzer. -- This message was sent by Atlassian JIRA (v6.2#6252)