Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-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 B76CA184CF for ; Fri, 11 Sep 2015 15:03:58 +0000 (UTC) Received: (qmail 30495 invoked by uid 500); 11 Sep 2015 15:03:46 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 30471 invoked by uid 500); 11 Sep 2015 15:03:46 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 30430 invoked by uid 99); 11 Sep 2015 15:03:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 15:03:46 +0000 Date: Fri, 11 Sep 2015 15:03:45 +0000 (UTC) From: =?utf-8?Q?Sergio_Pe=C3=B1a_=28JIRA=29?= To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-11763) Use * instead of sum(hash(*)) on Parquet predicate (PPD) integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11763?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergio Pe=C3=B1a updated HIVE-11763: ------------------------------- Attachment: (was: HIVE-11763.1.patch) > Use * instead of sum(hash(*)) on Parquet predicate (PPD) integration test= s > -------------------------------------------------------------------------= - > > Key: HIVE-11763 > URL: https://issues.apache.org/jira/browse/HIVE-11763 > Project: Hive > Issue Type: Sub-task > Reporter: Sergio Pe=C3=B1a > Assignee: Sergio Pe=C3=B1a > Attachments: HIVE-11763.2.patch > > > The integration tests for Parquet predicate push down (PPD) use the follo= wing query to validate the values filtered: > {noformat} > select sum(hash(*)) from ... > {noformat} > It would be better if we use {{select * from ...}} instead to see that th= ose values are correct. It is difficult to see if a value was filtered by s= eeing the hash. > Also, we can try to limit the number of rows of the INSERT ... SELECT sta= tmenet to avoid displaying many rows when validating the data. I think a LI= MIT 2 on each of the SELECT. > For example, the parquet_ppd_boolean.ppd has this: > {noformat} > insert overwrite table newtypestbl select * from (select cast("apple" as = char(10)), cast("bee" as varchar(10)), 0.22, true from src src1 union all s= elect cast("hello" as char(10)), cast("world" as varchar(10)), 11.22, false= from src src2) uniontbl; > {noformat} > If we use LIMIT 2, then we will reduce the # of rows: > {noformat} > insert overwrite table newtypestbl select * from (select cast("apple" as = char(10)), cast("bee" as varchar(10)), 0.22, true from src src1 LIMIT 2 uni= on all select cast("hello" as char(10)), cast("world" as varchar(10)), 11.2= 2, false from src src2 LIMIT 2) uniontbl; > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)