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 B2991200C13 for ; Mon, 6 Feb 2017 10:50:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B150F160B53; Mon, 6 Feb 2017 09:50:46 +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 08A75160B49 for ; Mon, 6 Feb 2017 10:50:45 +0100 (CET) Received: (qmail 7037 invoked by uid 500); 6 Feb 2017 09:50:45 -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 7028 invoked by uid 99); 6 Feb 2017 09:50:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 09:50:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CE6D9C0264 for ; Mon, 6 Feb 2017 09:50:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Z1ajtlLuoFO3 for ; Mon, 6 Feb 2017 09:50:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id AC05C5F24B for ; Mon, 6 Feb 2017 09:50:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D2FE9E0294 for ; Mon, 6 Feb 2017 09:50:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 66D972528B for ; Mon, 6 Feb 2017 09:50:42 +0000 (UTC) Date: Mon, 6 Feb 2017 09:50:42 +0000 (UTC) From: "Arina Ielchiieva (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5215) CTTAS: disallow temp tables in view expansion logic MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Feb 2017 09:50:46 -0000 [ https://issues.apache.org/jira/browse/DRILL-5215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15853766#comment-15853766 ] Arina Ielchiieva commented on DRILL-5215: ----------------------------------------- Merged into master with commit id 63ae6cffc23f1de8159217da9a8879b9ffb86423 > CTTAS: disallow temp tables in view expansion logic > --------------------------------------------------- > > Key: DRILL-5215 > URL: https://issues.apache.org/jira/browse/DRILL-5215 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.10.0 > Reporter: Arina Ielchiieva > Assignee: Arina Ielchiieva > Fix For: 1.10.0 > > > This Jira is addressing last two CR comments in PR for Jira DRILL-4956: > 1. Disallow temp tables in view expansion logic. > Steps to reproduce: > a. use default temporary workspace. > b. create persistent table with name t: > c. create view over persistent table. > d. drop persistent table. > e. create temporary table with the same name as persistent table. > f. select from view > Currently Drill returns result on step f but should return error message. > {noformat} > VALIDATION ERROR: Temporary tables usage is disallowed. Used temporary table name: t > {noformat} > {noformat} > use dfs.tmp; > create table t as select 'TABLE' from (values(1)); > create view v as select * from t; > select * from v; > +---------+ > | EXPR$0 | > +---------+ > | TABLE | > +---------+ > drop table t; > create temporary table t as select 'TEMP' from (values(1)); > select * from v; > +---------+ > | EXPR$0 | > +---------+ > | TEMP | > +---------+ > {noformat} > 2. Replace link to gist with CTTAS design doc to Jira link. -- This message was sent by Atlassian JIRA (v6.3.15#6346)