hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Bjarevall (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-11626) ResultSetMetaData.getColumnName() returns compound "table_name.column_name"
Date Mon, 24 Aug 2015 13:59:45 GMT
Roger Bjarevall created HIVE-11626:
--------------------------------------

             Summary: ResultSetMetaData.getColumnName() returns compound "table_name.column_name"
                 Key: HIVE-11626
                 URL: https://issues.apache.org/jira/browse/HIVE-11626
             Project: Hive
          Issue Type: Bug
          Components: JDBC
            Reporter: Roger Bjarevall
            Priority: Minor


The HIVE 1.2.1 driver returns a compound table_name.column_name when calling ResultSetMetaData.getColumnName().
As the method name implies it should return the column name only. There is a designated getTableName()
for the purpose of returning the table name. With these two properly implemented (getTableName()
doesn't work either as it currently returns null) the caller have the option to create a compound
name if needed.

We're currently evaluating better support for HIVE in DbVisualizer. Without proper return
of the column name only we will need to split the returned string which is bad workaround.
One potential problem with parsing the current string is that a user may decide to put an
embedded dot in the column name (having delimited identifiers on the DB enabled).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message