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 F12B618739 for ; Thu, 25 Jun 2015 20:09:05 +0000 (UTC) Received: (qmail 67190 invoked by uid 500); 25 Jun 2015 20:09:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 67163 invoked by uid 500); 25 Jun 2015 20:09:05 -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 67153 invoked by uid 99); 25 Jun 2015 20:09:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2015 20:09:05 +0000 Date: Thu, 25 Jun 2015 20:09:05 +0000 (UTC) From: "Venki Korukanti (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3373) CTAS partition by with empty list of partitioning columns should be blocked in parser 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-3373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Venki Korukanti updated DRILL-3373: ----------------------------------- Assignee: Jinfeng Ni (was: Venki Korukanti) > CTAS partition by with empty list of partitioning columns should be blocked in parser > ------------------------------------------------------------------------------------- > > Key: DRILL-3373 > URL: https://issues.apache.org/jira/browse/DRILL-3373 > Project: Apache Drill > Issue Type: Bug > Components: SQL Parser > Reporter: Jinfeng Ni > Assignee: Jinfeng Ni > Fix For: 1.1.0 > > Attachments: 0001-DRILL-3373-Raise-parsing-error-when-CTAS-has-partiti.patch > > > Sql parser should raise parsing error, when the CTAS statement has "PARTITION BY", yet the list of partitioning column is empty. > {code} > create table nation_par > partition by > as > select n_nationkey, n_name, n_comment > from cp.`tpch/nation.parquet`; > {code} > The expected behavior would be SQL parer error : > {code} > Error: PARSE ERROR: Encountered "as" at line 3, column 1. > Was expecting: > "(" ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)