Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DA8910D26 for ; Sun, 28 Dec 2014 21:08:15 +0000 (UTC) Received: (qmail 87898 invoked by uid 500); 28 Dec 2014 21:08:14 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 87868 invoked by uid 500); 28 Dec 2014 21:08:14 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 87857 invoked by uid 99); 28 Dec 2014 21:08:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Dec 2014 21:08:14 +0000 Date: Sun, 28 Dec 2014 21:08:14 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1668) Dropping Views Throws Unrelated Error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1668: ---------------------------------- Fix Version/s: Future > Dropping Views Throws Unrelated Error > ------------------------------------- > > Key: DRILL-1668 > URL: https://issues.apache.org/jira/browse/DRILL-1668 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Affects Versions: 0.7.0 > Reporter: MUFEED USMAN > Priority: Minor > Fix For: Future > > > I created the following 2 views on 2 separate schemas. > {code} > 0: jdbc:drill:zk=n67:5181> select * from INFORMATION_SCHEMA.`VIEWS`; > +---------------+--------------+------------+-----------------+ > | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | VIEW_DEFINITION | > +---------------+--------------+------------+-----------------+ > | DRILL | dfs.tmp | case_customer | SELECT `columns`[0], `columns`[1] FROM `dfs`.`root`.`cases.csv` | > | DRILL | n64.tmp | case_customer | SELECT `columns`[0], `columns`[1] FROM `dfs`.`root`.`cases.csv` | > +---------------+--------------+------------+-----------------+ > 2 rows selected (0.121 seconds) > {code} > Now, being in 'n64.tmp' I drop the following schema. All good. > {code} > 0: jdbc:drill:zk=n67:5181> drop view case_customer; > +------------+------------+ > | ok | summary | > +------------+------------+ > | true | View 'case_customer' deleted successfully from 'n64.tmp' schema | > +------------+------------+ > 1 row selected (0.135 seconds) > 0: jdbc:drill:zk=n67:5181> select * from INFORMATION_SCHEMA.`VIEWS`; > +---------------+--------------+------------+-----------------+ > | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | VIEW_DEFINITION | > +---------------+--------------+------------+-----------------+ > | DRILL | dfs.tmp | case_customer | SELECT `columns`[0], `columns`[1] FROM `dfs`.`root`.`cases.csv` | > +---------------+--------------+------------+-----------------+ > 1 row selected (0.145 seconds) > {code} > Now, when I try to drop again it should say something like "No view by the name case_customer found in the current workspace." Rather it throws the below. > {code} > 0: jdbc:drill:zk=n67:5181> drop view case_customer; > +------------+------------+ > | ok | summary | > +------------+------------+ > | false | Error: Failure while accessing Zookeeper | > +------------+------------+ > 1 row selected (0.126 seconds) > {code} > And all good as it should be when executed as below. > {code} > 0: jdbc:drill:zk=n67:5181> drop view dfs.tmp.`case_customer`; > +------------+------------+ > | ok | summary | > +------------+------------+ > | true | View 'case_customer' deleted successfully from 'dfs.tmp' schema | > +------------+------------+ > 1 row selected (0.11 seconds) > 0: jdbc:drill:zk=n67:5181> select * from INFORMATION_SCHEMA.`VIEWS`; > +---------------+--------------+------------+-----------------+ > | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | VIEW_DEFINITION | > +---------------+--------------+------------+-----------------+ > +---------------+--------------+------------+-----------------+ > No rows selected (0.136 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)