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 A42BE17F91 for ; Mon, 20 Apr 2015 22:14:59 +0000 (UTC) Received: (qmail 68320 invoked by uid 500); 20 Apr 2015 22:14:59 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 68026 invoked by uid 500); 20 Apr 2015 22:14:59 -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 68013 invoked by uid 99); 20 Apr 2015 22:14:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 22:14:59 +0000 Date: Mon, 20 Apr 2015 22:14:59 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-2412) CTAS has issues when the underlying query casts a column to time datatype 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-2412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Challapalli closed DRILL-2412. ------------------------------------ Verified and added the below testcase : Functional/Passing/ctas/ctas_t17_DRILL-2412.sql > CTAS has issues when the underlying query casts a column to time datatype > ------------------------------------------------------------------------- > > Key: DRILL-2412 > URL: https://issues.apache.org/jira/browse/DRILL-2412 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Parquet > Reporter: Rahul Challapalli > Assignee: Deneche A. Hakim > Fix For: 0.9.0 > > Attachments: error.log, time.txt > > > git.commit.id.abbrev=e92db23 > {code} > create table time_parquet as select cast(columns[0] as time) time_col from `time.tbl`; > +------------+---------------------------+ > | Fragment | Number of records written | > +------------+---------------------------+ > | 0_0 | 21 | > +------------+---------------------------+ > 1 row selected (0.201 seconds) > {code} > Now running a count(*) on the newly created table does not have any issues > {code} > 0: jdbc:drill:schema=dfs.drillTestDirViews> select count(*) from time_parquet; > +------------+ > | EXPR$0 | > +------------+ > | 21 | > +------------+ > 1 row selected (0.081 seconds) > {code} > However the below 2 queries fail > {code} > 0: jdbc:drill:schema=dfs.drillTestDirViews> select * from time_parquet; > Query failed: RemoteRpcException: Failure while running fragment., org.apache.drill.exec.vector.NullableTimeVector cannot be cast to org.apache.drill.exec.vector.NullableIntVector [ cdceaf64-b858-4063-8364-d119703cf6f0 on qa-node191.qa.lab:31010 ] > [ cdceaf64-b858-4063-8364-d119703cf6f0 on qa-node191.qa.lab:31010 ] > 0: jdbc:drill:schema=dfs.drillTestDirViews> select time_col from time_parquet; > Query failed: RemoteRpcException: Failure while running fragment., org.apache.drill.exec.vector.NullableTimeVector cannot be cast to org.apache.drill.exec.vector.NullableIntVector [ 8c4254bb-7869-468d-bc6c-7151b833593f on qa-node191.qa.lab:31010 ] > [ 8c4254bb-7869-468d-bc6c-7151b833593f on qa-node191.qa.lab:31010 ] > Error: exception while executing query: Failure while executing query. (state=,code=0) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)