Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6A5B9EBE for ; Tue, 25 Oct 2011 17:44:52 +0000 (UTC) Received: (qmail 67222 invoked by uid 500); 25 Oct 2011 17:44:52 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 67185 invoked by uid 500); 25 Oct 2011 17:44:52 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 67176 invoked by uid 500); 25 Oct 2011 17:44:52 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 67173 invoked by uid 99); 25 Oct 2011 17:44:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 17:44:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 17:44:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4401231BA5D for ; Tue, 25 Oct 2011 17:42:32 +0000 (UTC) Date: Tue, 25 Oct 2011 17:42:32 +0000 (UTC) From: =?utf-8?Q?Robert_Sur=C3=B3wka_=28Updated=29_=28JIRA=29?= To: hive-dev@hadoop.apache.org Message-ID: <2082568281.14397.1319564552279.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <198086158.5830.1318442473051.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2501) When new instance of Hive (class) is created, the current database is reset to default (current database shouldn't be changed). MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-2501?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Sur=C3=B3wka updated HIVE-2501: --------------------------------- Attachment: HIVE-2501.2.patch Thank you for the response. The current diff at: https://reviews.apache.org/r/2361/diff/#index_header I added the appropriate test. About the previous .q test, I believe that new database wouldn't be created= for each .q file, unless also tables like src and src_part are recreated f= or each .q file - but now it is immaterial anyway. =20 =20 > When new instance of Hive (class) is created, the current database is res= et to default (current database shouldn't be changed). > -------------------------------------------------------------------------= ------------------------------------------------------ > > Key: HIVE-2501 > URL: https://issues.apache.org/jira/browse/HIVE-2501 > Project: Hive > Issue Type: Bug > Reporter: Robert Sur=C3=B3wka > Assignee: Robert Sur=C3=B3wka > Priority: Minor > Attachments: HIVE-2501.1.patch, HIVE-2501.2.patch > > > This bug manifested to me, when first thing I did after starting Hive, wa= s to call use ; but then calling show tables; was still showing ta= bles from the default database (and I had to call "use" again to actually c= hange database). This bug might have manifested only due to a specific Hive= deployment I am using (I didn't investigate this issue that deeply).=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira