[ 
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)

Reply via email to