You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "chandra sekhar gunturi (JIRA)" <ji...@apache.org> on 2014/02/21 09:44:20 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=13908102#comment-13908102 ] 

chandra sekhar gunturi commented on HIVE-3050:
----------------------------------------------

This is required even for creating load command when hive table is partitioned. When the Hive table is partitioned, load command  should have 'partitioned' clause. To give the load command programatically, depending on metadata, this functionality is useful. 

> 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
>
> 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.1.5#6160)