You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2015/02/09 04:51:35 UTC

[jira] [Updated] (HIVE-3050) JDBC should provide metadata for columns whether a column is a partition column or not

     [ https://issues.apache.org/jira/browse/HIVE-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3050:
------------------------
    Attachment: HIVE-3050.1.patch.txt

> JDBC should provide metadata for columns whether a column is a partition column or not
> --------------------------------------------------------------------------------------
>
>                 Key: HIVE-3050
>                 URL: https://issues.apache.org/jira/browse/HIVE-3050
>             Project: Hive
>          Issue Type: Improvement
>          Components: JDBC
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-3050.1.patch.txt
>
>
> Trivial request from UI developers. 
> {code}
> DatabaseMetaData databaseMetaData = connection.getMetaData();
> ResultSet rs = databaseMetaData.getColumns(null, null, "tableName", null);
> ....
> boolean partitionKey = rs.getBoolean("IS_PARTITION_COLUMN");
> {code}
> It's not JDBC standard column but seemed to be useful.



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