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 022BA190D5 for ; Fri, 8 Apr 2016 23:08:26 +0000 (UTC) Received: (qmail 71578 invoked by uid 500); 8 Apr 2016 23:08:25 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 71547 invoked by uid 500); 8 Apr 2016 23:08:25 -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 71520 invoked by uid 99); 8 Apr 2016 23:08:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2016 23:08:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 783782C1F62 for ; Fri, 8 Apr 2016 23:08:25 +0000 (UTC) Date: Fri, 8 Apr 2016 23:08:25 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-4449) Wrong results when using metadata cache with specific set of queries 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-4449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Challapalli closed DRILL-4449. ------------------------------------ Verified and added a testcase > Wrong results when using metadata cache with specific set of queries > -------------------------------------------------------------------- > > Key: DRILL-4449 > URL: https://issues.apache.org/jira/browse/DRILL-4449 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Parquet > Affects Versions: 1.5.0 > Reporter: Deneche A. Hakim > Assignee: Deneche A. Hakim > Priority: Critical > Fix For: 1.6.0 > > > We are still working on a reproduction but when we have a query similar to this one: > {noformat} > with q1 as ( > select a.field > from `table` a > where > group by a.field > having ... > ) > , q2 as ( > select a.field > from `table` a > where > group by a.field > ) > select * from ( > select count(*) as cnt from q1 > union all > select count(*) as cnt from q2 > ); > {noformat} > The table is partitioned and both sub queries will force a parquet pruning on the table. Because we share the parquet metadata object in ParquetGroupScan, the second query end up being "over pruned" and we get wrong results. > The plan doesn't show the problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)