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 0F0A5184F7 for ; Sun, 28 Jun 2015 17:05:05 +0000 (UTC) Received: (qmail 56967 invoked by uid 500); 28 Jun 2015 17:05:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 56939 invoked by uid 500); 28 Jun 2015 17:05:04 -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 56929 invoked by uid 99); 28 Jun 2015 17:05:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jun 2015 17:05:04 +0000 Date: Sun, 28 Jun 2015 17:05:04 +0000 (UTC) From: "Victoria Markman (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3374) CTAS with PARTITION BY, partition column name from view can not be resolved 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-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Victoria Markman updated DRILL-3374: ------------------------------------ Labels: (was: window_function) > CTAS with PARTITION BY, partition column name from view can not be resolved > --------------------------------------------------------------------------- > > Key: DRILL-3374 > URL: https://issues.apache.org/jira/browse/DRILL-3374 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Affects Versions: 1.1.0 > Reporter: Khurram Faraaz > Assignee: Jinfeng Ni > Fix For: 1.1.0 > > > CTAS with PARTITION BY clause fails to resolve column name when partitioning column is from a view. > {code} > 0: jdbc:drill:schema=dfs.tmp> create table ctas_prtng_01 partition by (col_vchar_52) as select * from vwOnParq_wCst; > Error: SYSTEM ERROR: IllegalArgumentException: partition col col_vchar_52 could not be resolved in table's column lists! > [Error Id: 7cb227c1-65c5-48cb-a00b-1a89a5309bc8 on centos-04.qa.lab:31010] (state=,code=0) > {code} > Table used in above CTAS does exist and the column used to partition by also exists. > {code} > 0: jdbc:drill:schema=dfs.tmp> describe vwOnParq_wCst; > +---------------+--------------------+--------------+ > | COLUMN_NAME | DATA_TYPE | IS_NULLABLE | > +---------------+--------------------+--------------+ > | col_int | INTEGER | YES | > | col_bigint | BIGINT | YES | > | col_char_2 | CHARACTER | YES | > | col_vchar_52 | CHARACTER VARYING | YES | > | col_tmstmp | TIMESTAMP | YES | > | col_dt | DATE | YES | > | col_booln | BOOLEAN | YES | > | col_dbl | DOUBLE | YES | > | col_tm | TIME | YES | > +---------------+--------------------+--------------+ > 9 rows selected (0.411 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)