You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "Dennis Du Krøger (JIRA)" <ji...@apache.org> on 2016/10/05 09:29:21 UTC

[jira] [Created] (METAMODEL-1119) MetaModel does not work with Hive JDBC without patched JAR

Dennis Du Krøger created METAMODEL-1119:
-------------------------------------------

             Summary: MetaModel does not work with Hive JDBC without patched JAR
                 Key: METAMODEL-1119
                 URL: https://issues.apache.org/jira/browse/METAMODEL-1119
             Project: Apache MetaModel
          Issue Type: Bug
            Reporter: Dennis Du Krøger


This is not _really_ a MetaModel issue, but it might be nice to fix in MetaModel: Apache Hive's JDBC driver is... Flawed. Its MetaData class throws SQLException (which _should_ mean database access problems, not "we didn't feel like implementing") in many cases where it should really just return null, false or an empty string. In our case, it affects our ability to get the schema name in the case where there are more than a single schema(/database), as we expect {{getUrl}} and {{getUserName}} to behave properly.

I've made a PR for Hive here: https://github.com/apache/hive/pull/106/files but as it seems to often take a long time to get Hive PRs merged, and since the 2.x Hive JDBC driver doesn't seem to be compatible with 1.2.1 and earlier which used by most Hadoop distributions (I don't expect that it will be backported to 1.2.x), it would be nice to not break when getting the exception.

Workaround: You can find a patched Hive JDBC driver here: https://datacleaner.org/resources/public/hive-jdbc-1.2.1.jar



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)