Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D92E6200BA5 for ; Wed, 19 Oct 2016 13:06:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7BF9160AEA; Wed, 19 Oct 2016 11:06:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28EB0160ADE for ; Wed, 19 Oct 2016 13:06:03 +0200 (CEST) Received: (qmail 95492 invoked by uid 500); 19 Oct 2016 11:06:02 -0000 Mailing-List: contact issues-help@carbondata.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.incubator.apache.org Delivered-To: mailing list issues@carbondata.incubator.apache.org Received: (qmail 95479 invoked by uid 99); 19 Oct 2016 11:06:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 11:06:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C9B1E18068A for ; Wed, 19 Oct 2016 11:06:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fLRU64ttEZNs for ; Wed, 19 Oct 2016 11:06:01 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 11DEA5FC1E for ; Wed, 19 Oct 2016 11:05:59 +0000 (UTC) Received: (qmail 95030 invoked by uid 99); 19 Oct 2016 11:05:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 11:05:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 009FA2C0073 for ; Wed, 19 Oct 2016 11:05:59 +0000 (UTC) Date: Wed, 19 Oct 2016 11:05:59 +0000 (UTC) From: "Harmeet Singh (JIRA)" To: issues@carbondata.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-327) Drop Daabase unexpected behaviour. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 11:06:04 -0000 Harmeet Singh created CARBONDATA-327: ---------------------------------------- Summary: Drop Daabase unexpected behaviour. Key: CARBONDATA-327 URL: https://issues.apache.org/jira/browse/CARBONDATA-327 Project: CarbonData Issue Type: Bug Reporter: Harmeet Singh Hey team, I am creating a database as below: 0: jdbc:hive2://127.0.0.1:10000> create database Test; +---------+--+ | result | +---------+--+ +---------+--+ After creating an database i am using that database using below command: 0: jdbc:hive2://127.0.0.1:10000> use Test; +---------+--+ | result | +---------+--+ +---------+--+ After That, i am drop the database as below: 0: jdbc:hive2://127.0.0.1:10000> drop database test; +---------+--+ | result | +---------+--+ +---------+--+ The database drop successfully. I am expecting, after that the carbon data automatically switch to the "default" database. But when i trying to execute command "show tables" the result return nothing as below : 0: jdbc:hive2://127.0.0.1:10000> show tables; +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ +------------+--------------+--+ No rows selected (0.019 seconds) But my default database contains some table as below: 0: jdbc:hive2://127.0.0.1:10000> use default; +---------+--+ | result | +---------+--+ +---------+--+ No rows selected (0.024 seconds) 0: jdbc:hive2://127.0.0.1:10000> show tables; +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ | one | false | | two | false | +------------+--------------+--+ 2 rows selected (0.013 seconds) If I am following all above step on Hive, Hive gave us an error on show tables after drop the database as below: hive> drop database test; OK Time taken: 0.628 seconds hive> show databases; OK default Time taken: 0.022 seconds, Fetched: 1 row(s) hive> show tables; FAILED: SemanticException [Error 10072]: Database does not exist: test -- This message was sent by Atlassian JIRA (v6.3.4#6332)