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 9656411DB1 for ; Tue, 15 Jul 2014 17:09:26 +0000 (UTC) Received: (qmail 56854 invoked by uid 500); 15 Jul 2014 17:09:26 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 56806 invoked by uid 500); 15 Jul 2014 17:09:26 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 56793 invoked by uid 99); 15 Jul 2014 17:09:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 17:09:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 15 Jul 2014 17:09:25 +0000 Received: (qmail 56551 invoked by uid 99); 15 Jul 2014 17:09:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2014 17:09:05 +0000 Date: Tue, 15 Jul 2014 17:09:05 +0000 (UTC) From: "Venki Korukanti (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (DRILL-1136) Create view replaces the same existing view MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Venki Korukanti reassigned DRILL-1136: -------------------------------------- Assignee: Venki Korukanti > Create view replaces the same existing view > ------------------------------------------- > > Key: DRILL-1136 > URL: https://issues.apache.org/jira/browse/DRILL-1136 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Writer > Reporter: Krystal > Assignee: Venki Korukanti > Attachments: DRILL-1136-Check-for-existance-of-view-before-creati.patch > > > git.commit.id.abbrev=5b57294 > Currently, an existing view can be replaced by using "create view" syntax. For example, I have an existing view named student_v . Then I run a create view with the same name: > 0: jdbc:drill:schema=dfs> create view student_v as select * from voter; > +------------+------------+ > | ok | summary | > +------------+------------+ > | true | View 'student_v' replaced successfully in 'dfs.default' schema | > +------------+------------+ > 1 row selected (0.544 seconds) > Like oracle and postgres, this should not be allowed. A user needs to use "create or replace view ..." syntax. -- This message was sent by Atlassian JIRA (v6.2#6252)