hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4194) JDBC2: HiveDriver should not throw RuntimeException when passed an invalid URL
Date Thu, 23 May 2013 02:24:21 GMT

    [ https://issues.apache.org/jira/browse/HIVE-4194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13664795#comment-13664795
] 

Navis commented on HIVE-4194:
-----------------------------

running test
                
> 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: HiveServer2, JDBC
>    Affects Versions: 0.11.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>         Attachments: HIVE-4194.patch
>
>
> 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

Mime
View raw message