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 Ryu <na...@nexr.com> on 2015/02/09 04:52:18 UTC
Review Request 30783: JDBC should provide metadata for columns
whether a column is a partition column or not
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30783/
-----------------------------------------------------------
Review request for hive.
Bugs: HIVE-3050
https://issues.apache.org/jira/browse/HIVE-3050
Repository: hive-git
Description
-------
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.
Diffs
-----
service/src/java/org/apache/hive/service/cli/operation/GetColumnsOperation.java 92ea7b0
Diff: https://reviews.apache.org/r/30783/diff/
Testing
-------
Thanks,
Navis Ryu