You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2013/03/16 01:40:13 UTC

[jira] [Created] (HIVE-4194) JDBC2: HiveDriver should not throw RuntimeException when passed an invalid URL

Richard Ding created HIVE-4194:
----------------------------------

             Summary: JDBC2: HiveDriver should not throw RuntimeException when passed an invalid URL
                 Key: HIVE-4194
                 URL: https://issues.apache.org/jira/browse/HIVE-4194
             Project: Hive
          Issue Type: Bug
          Components: JDBC
    Affects Versions: 0.11.0
            Reporter: Richard Ding
            Assignee: Richard Ding


As per JDBC 3.0 Spec (section 9.2)
    "If the Driver implementation understands the URL, it will return a Connection object; otherwise it returns null"

Currently HiveConnection constructor will throw IllegalArgumentException if url string doesn't start with "jdbc:hive2". This exception should be caught by HiveDriver.connect and return null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira