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

Alexander Pivovarov updated HIVE-7676:
--------------------------------------

    Description: 
I noticed that some methods in HiveDatabaseMetaData throws exceptions instead 
of returning true/false. Many JDBC clients expects implementations for 
particular methods in order to work. 

E.g. SQuirreL SQL shows databases only if supportsSchemasInTableDefinitions 
returns true.

Also hive 0.14.0 supports UNION ALL and does not support UNION
We can indicate this in HiveDatabaseMetaData instead of throwing Method Not 
supported exception.

getIdentifierQuoteString  should return space if not supported.
http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getIdentifierQuoteString%28%29


  was:
I noticed that some methods in HiveDatabaseMetaData throws exceptions instead 
of returning true/false. Many JDBC clients expects implementations for 
particular methods in order to work. 

E.g. SQuirreL SQL shows databases only if supportsSchemasInTableDefinitions 
returns true.

Also hive 0.13.1 supports UNION ALL and does not support UNION
we can indicate this in HiveDatabaseMetaData instead of throwing Method Not 
supported exception.

getIdentifierQuoteString  should return space if not supported.
http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getIdentifierQuoteString%28%29



> Support more methods in DatabaseMetaData
> ----------------------------------------
>
>                 Key: HIVE-7676
>                 URL: https://issues.apache.org/jira/browse/HIVE-7676
>             Project: Hive
>          Issue Type: Improvement
>          Components: JDBC
>            Reporter: Alexander Pivovarov
>         Attachments: HIVE-7676.patch
>
>
> I noticed that some methods in HiveDatabaseMetaData throws exceptions instead 
> of returning true/false. Many JDBC clients expects implementations for 
> particular methods in order to work. 
> E.g. SQuirreL SQL shows databases only if supportsSchemasInTableDefinitions 
> returns true.
> Also hive 0.14.0 supports UNION ALL and does not support UNION
> We can indicate this in HiveDatabaseMetaData instead of throwing Method Not 
> supported exception.
> getIdentifierQuoteString  should return space if not supported.
> http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html#getIdentifierQuoteString%28%29



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to