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 5FBB3200B9D for ; Thu, 13 Oct 2016 20:47:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5E993160AF6; Thu, 13 Oct 2016 18:47:20 +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 D19C4160AE4 for ; Thu, 13 Oct 2016 20:47:19 +0200 (CEST) Received: (qmail 22186 invoked by uid 500); 13 Oct 2016 18:47:18 -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 21832 invoked by uid 99); 13 Oct 2016 18:47:17 -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; Thu, 13 Oct 2016 18:47:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C4ABEDFE13; Thu, 13 Oct 2016 18:47:17 +0000 (UTC) From: parthchandra To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #600: DRILL-4373: Drill and Hive have incompatible timest... Content-Type: text/plain Message-Id: <20161013184717.C4ABEDFE13@git1-us-west.apache.org> Date: Thu, 13 Oct 2016 18:47:17 +0000 (UTC) archived-at: Thu, 13 Oct 2016 18:47:20 -0000 Github user parthchandra commented on a diff in the pull request: https://github.com/apache/drill/pull/600#discussion_r83284350 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/writer/TestParquetWriter.java --- @@ -754,15 +764,45 @@ public void testImpalaParquetVarBinary_DictChange() throws Exception { compareParquetReadersColumnar("field_impala_ts", "cp.`parquet/int96_dict_change.parquet`"); } + @Test + public void testImpalaParquetBinaryTimeStamp_DictChange() throws Exception { + try { + test("alter session set %s = true", ExecConstants.PARQUET_READER_INT96_AS_TIMESTAMP); + compareParquetReadersColumnar("field_impala_ts", "cp.`parquet/int96_dict_change.parquet`"); --- End diff -- This is not a good enough test. Both the baseline and test case queries will use the getDateTimeValueFromBinary method and if there is a bug in that method, the test will still pass as both will produce the same incorrect value. Better to compare with the actual baseline value in the file. --- 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. ---