hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Balamohan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15405) Improve FileUtils.isPathWithinSubtree
Date Fri, 09 Dec 2016 08:59:58 GMT

     [ https://issues.apache.org/jira/browse/HIVE-15405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rajesh Balamohan updated HIVE-15405:
------------------------------------
    Description: 
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 have early exit in {{FileUtils.isPathWithinSubtree}}

  was:
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}}


> 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 have early exit in {{FileUtils.isPathWithinSubtree}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message