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 ED78D17EA4 for ; Wed, 25 Mar 2015 01:47:52 +0000 (UTC) Received: (qmail 89747 invoked by uid 500); 25 Mar 2015 01:47:52 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 89716 invoked by uid 500); 25 Mar 2015 01:47:52 -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 89706 invoked by uid 99); 25 Mar 2015 01:47:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 01:47:52 +0000 Date: Wed, 25 Mar 2015 01:47:52 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-2517) Partition pruning still reading files during planning 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-2517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-2517: ---------------------------------- Issue Type: New Feature (was: Bug) > Partition pruning still reading files during planning > ----------------------------------------------------- > > Key: DRILL-2517 > URL: https://issues.apache.org/jira/browse/DRILL-2517 > Project: Apache Drill > Issue Type: New Feature > Components: Query Planning & Optimization > Affects Versions: 0.7.0, 0.8.0 > Reporter: Adam Gilmore > Assignee: Adam Gilmore > > Partition pruning still tries to read Parquet files during the planning stage even though they don't match the partition filter. > For example, if there were an invalid Parquet file in a directory that should not be queried: > {code} > 0: jdbc:drill:zk=local> select sum(price) from dfs.tmp.purchases where dir0 = 1; > Query failed: IllegalArgumentException: file:/tmp/purchases/4/0_0_0.parquet is not a Parquet file (too small) > {code} > The reason is that the partition pruning happens after the Parquet plugin tries to read the footer of each file. > Ideally, partition pruning would happen first before the format plugin gets involved. -- This message was sent by Atlassian JIRA (v6.3.4#6332)