You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Brian Muray (JIRA)" <ji...@apache.org> on 2014/02/05 00:53:07 UTC
[jira] [Commented] (HIVE-4194) JDBC2: HiveDriver should not throw
RuntimeException when passed an invalid URL
[ https://issues.apache.org/jira/browse/HIVE-4194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891456#comment-13891456 ]
Brian Muray commented on HIVE-4194:
-----------------------------------
Broken by fix for HIVE-4802. Issue reopened as HIVE-6363.
> 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
> Fix For: 0.12.0
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)