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 79A1F200CE0 for ; Thu, 10 Aug 2017 12:21:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7828A16AFC9; Thu, 10 Aug 2017 10:21:21 +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 EE92816AFBC for ; Thu, 10 Aug 2017 12:21:20 +0200 (CEST) Received: (qmail 64789 invoked by uid 500); 10 Aug 2017 10:21:19 -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 64703 invoked by uid 99); 10 Aug 2017 10:21:19 -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, 10 Aug 2017 10:21:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 245C9F32AC; Thu, 10 Aug 2017 10:21:18 +0000 (UTC) From: arina-ielchiieva To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #877: DRILL-5660: Drill 1.10 queries fail due to Parquet ... Content-Type: text/plain Message-Id: <20170810102118.245C9F32AC@git1-us-west.apache.org> Date: Thu, 10 Aug 2017 10:21:18 +0000 (UTC) archived-at: Thu, 10 Aug 2017 10:21:21 -0000 Github user arina-ielchiieva commented on a diff in the pull request: https://github.com/apache/drill/pull/877#discussion_r132414323 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetGroupScan.java --- @@ -209,9 +211,10 @@ public ParquetGroupScan( // this.entries = Lists.newArrayList(); if (fileSelection.getMetaContext() != null && (fileSelection.getMetaContext().getPruneStatus() == PruneStatus.NOT_STARTED || - fileSelection.getMetaContext().getPruneStatus() == PruneStatus.NOT_PRUNED)) { - // if pruning was not applicable or was attempted and nothing was pruned, initialize the - // entries with just the selection root instead of the fully expanded list to reduce overhead. + fileSelection.getMetaContext().getPruneStatus() == PruneStatus.NOT_PRUNED || + fileSelection.getMetaContext().isMetadataFilesMissingOrCorrupted)) { --- End diff -- There are 4 checks in `if` statement, may be we can factor out them in separate method? --- 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. ---