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 2012/05/24 03:53:42 UTC

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

Navis created HIVE-3050:
---------------------------

             Summary: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3050:
------------------------

    Status: Patch Available  (was: Open)

https://reviews.facebook.net/D3369
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira