From dev-return-25697-apmail-drill-dev-archive=drill.apache.org@drill.apache.org Tue Dec 6 06:12:30 2016 Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-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 AE2591957B for ; Tue, 6 Dec 2016 06:12:30 +0000 (UTC) Received: (qmail 33383 invoked by uid 500); 6 Dec 2016 06:12:27 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 33128 invoked by uid 500); 6 Dec 2016 06:12:27 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 32011 invoked by uid 99); 6 Dec 2016 06:12:26 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2016 06:12:26 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4B875F175A; Tue, 6 Dec 2016 06:12:26 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #666: DRILL-4956: Temporary tables support Content-Type: text/plain Message-Id: <20161206061226.4B875F175A@git1-us-west.apache.org> Date: Tue, 6 Dec 2016 06:12:26 +0000 (UTC) Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/666#discussion_r90701076 --- Diff: exec/java-exec/src/main/codegen/includes/parserImpls.ftl --- @@ -214,8 +214,8 @@ SqlNode SqlDropView() : } /** - * Parses a CTAS statement. - * CREATE TABLE tblname [ (field1, field2, ...) ] AS select_statement. + * Parses a CTAS or CTTAS statement. + * CREATE [TEMPORARY] TABLE tblname [ (field1, field2, ...) ] AS select_statement. --- End diff -- MySQL requires the full TEMPORARY keyword. Postgress allows both TEMPORARY and the shorter TEMP. (SqlServer requires a funky # table name prefix.) Oracle seems to use the full TEMPORARY keyword. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---