You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Oren Lederman (JIRA)" <ji...@apache.org> on 2011/08/02 14:55:27 UTC

[jira] [Commented] (HIVE-2320) Implement setCatalog() and allow setting active database to a database other than "default"

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

Oren Lederman commented on HIVE-2320:
-------------------------------------

I considered two alternatives:
1. The one I used in the patch above - setting a local database variable in the constructor calling setCatalog() after calling configureConnection().
2. Setting a global database variable and calling setCatalog() from configureConnection()

> Implement setCatalog() and allow setting active database to a database other than "default"
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2320
>                 URL: https://issues.apache.org/jira/browse/HIVE-2320
>             Project: Hive
>          Issue Type: Sub-task
>          Components: JDBC
>    Affects Versions: 0.7.1
>            Reporter: Oren Lederman
>            Priority: Minor
>              Labels: jdbc
>         Attachments: HIVE-2320.Implement-setCatalog-and-allow-setting-active-database-to-a-database-other-than-default.1.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Currently, the JDBC driver always use "default" as the schema/database. We should allow setting the active schema to another schema.
> 1. implement the setCatalog() method
> 2. modify HiveConnection constructor to take the schema from the URL and call setCatalog
> 3. change configureConnection() and execute "use <schema>;" statement 
> See https://issues.apache.org/jira/browse/HIVE-675

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira