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 4B7F3200BD9 for ; Fri, 9 Dec 2016 09:59:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4A1F5160B33; Fri, 9 Dec 2016 08:59:02 +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 B81C4160B1D for ; Fri, 9 Dec 2016 09:59:01 +0100 (CET) Received: (qmail 30814 invoked by uid 500); 9 Dec 2016 08:58:58 -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 30718 invoked by uid 99); 9 Dec 2016 08:58:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 08:58:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FE4E2C03DF for ; Fri, 9 Dec 2016 08:58:58 +0000 (UTC) Date: Fri, 9 Dec 2016 08:58:58 +0000 (UTC) From: "Rajesh Balamohan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-15405) Improve FileUtils.isPathWithinSubtree MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Dec 2016 08:59:02 -0000 [ https://issues.apache.org/jira/browse/HIVE-15405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajesh Balamohan updated HIVE-15405: ------------------------------------ Attachment: HIVE-15405-profiler.view.png > Improve FileUtils.isPathWithinSubtree > ------------------------------------- > > Key: HIVE-15405 > URL: https://issues.apache.org/jira/browse/HIVE-15405 > Project: Hive > Issue Type: Improvement > Reporter: Rajesh Balamohan > Priority: Minor > Attachments: HIVE-15405-profiler.view.png > > > When running single node LLAP with the following query multiple number of times (flights table had 7000+ partitions) {{FileUtils.isPathWithinSubtree}} became a hotpath. > {noformat} > SELECT COUNT(`flightnum`) AS `cnt_flightnum_ok`, > YEAR(`flights`.`dateofflight`) AS `yr_flightdate_ok` > FROM `flights` as `flights` > JOIN `airlines` ON (`uniquecarrier` = `airlines`.`code`) > JOIN `airports` as `source_airport` ON (`origin` = `source_airport`.`iata`) > JOIN `airports` as `dest_airport` ON (`flights`.`dest` = `dest_airport`.`iata`) > GROUP BY YEAR(`flights`.`dateofflight`); > {noformat} > It would be good to do early exit in {{FileUtils.isPathWithinSubtree}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)