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 E45F0200BB1 for ; Wed, 19 Oct 2016 14:44:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E33F8160AEA; Wed, 19 Oct 2016 12:44:00 +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 1D30C160AFE for ; Wed, 19 Oct 2016 14:43:59 +0200 (CEST) Received: (qmail 20685 invoked by uid 500); 19 Oct 2016 12:43:59 -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 20359 invoked by uid 99); 19 Oct 2016 12:43:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 12:43:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A82002C4C84 for ; Wed, 19 Oct 2016 12:43:58 +0000 (UTC) Date: Wed, 19 Oct 2016 12:43:58 +0000 (UTC) From: "Vitalii Diravka (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (DRILL-4342) Drill fails to read a date column from hive generated parquet MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 12:44:01 -0000 [ https://issues.apache.org/jira/browse/DRILL-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitalii Diravka resolved DRILL-4342. ------------------------------------ Resolution: Duplicate > Drill fails to read a date column from hive generated parquet > ------------------------------------------------------------- > > Key: DRILL-4342 > URL: https://issues.apache.org/jira/browse/DRILL-4342 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Hive, Storage - Parquet > Reporter: Rahul Challapalli > Attachments: fewtypes_null.parquet > > > git.commit.id.abbrev=576271d > Below is the hive ddl (using hive 1.2 which supports date in parquet) > {code} > create external table hive1dot2_fewtypes_null ( > int_col int, > bigint_col bigint, > date_col date, > time_col string, > timestamp_col timestamp, > interval_col string, > varchar_col string, > float_col float, > double_col double, > bool_col boolean > ) > stored as parquet > location '/drill/testdata/hive_storage/hive1dot2_fewtypes_null'; > {code} > Query using the hive storage plugin > {code} > date_col from hive.hive1dot2_fewtypes_null; > +-------------+ > | date_col | > +-------------+ > | null | > | null | > | null | > | 1996-01-29 | > | 1996-03-01 | > | 1996-03-02 | > | 1997-02-28 | > | null | > | 1997-03-01 | > | 1997-03-02 | > | 2000-04-01 | > | 2000-04-03 | > | 2038-04-08 | > | 2039-04-09 | > | 2040-04-10 | > | null | > | 1999-02-08 | > | 1999-03-08 | > | 1999-01-18 | > | 2003-01-02 | > | null | > +-------------+ > {code} > Below is the output reading through dfs parquet reader. > {code} > 0: jdbc:drill:zk=10.10.10.41:5181> select date_col from dfs.`/drill/testdata/hive_storage/hive1dot2_fewtypes_null`; > +-------------+ > | date_col | > +-------------+ > | null | > | null | > | null | > | 369-02-09 | > | 369-03-12 | > | 369-03-13 | > | 368-03-11 | > | null | > | 368-03-12 | > | 368-03-13 | > | 365-04-12 | > | 365-04-14 | > | 327-04-19 | > | 326-04-20 | > | 325-04-21 | > | null | > | 366-02-19 | > | 366-03-19 | > | 366-01-29 | > | 362-01-13 | > | null | > +-------------+ > {code} > I attached the parquet file generated from hive. Let me know if anything else is needed for reproducing this issue -- This message was sent by Atlassian JIRA (v6.3.4#6332)