hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HIVE-3562) Some limit can be pushed down to map stage
Date Thu, 22 Aug 2013 17:07:52 GMT

    [ https://issues.apache.org/jira/browse/HIVE-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747643#comment-13747643
] 

Ashutosh Chauhan edited comment on HIVE-3562 at 8/22/13 5:07 PM:
-----------------------------------------------------------------

[~navis] Can you also add a test case for following query with both this optimization on as
well as reducesink dedup optimization on? This will trigger a case for one merged RS for both
group by and order by.
 select value,avg(key) from src group by value order by value limit 20;

                
      was (Author: ashutoshc):
    [~navis] Can you also add a test case for following query with both this optimization
on as well as reducesink dedup optimization on? This will trigger a case for one merged RS
for both group by and order by.
 select value,avg(key) from src group by value order by value;

                  
> Some limit can be pushed down to map stage
> ------------------------------------------
>
>                 Key: HIVE-3562
>                 URL: https://issues.apache.org/jira/browse/HIVE-3562
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Trivial
>         Attachments: HIVE-3562.D5967.1.patch, HIVE-3562.D5967.2.patch, HIVE-3562.D5967.3.patch,
HIVE-3562.D5967.4.patch, HIVE-3562.D5967.5.patch, HIVE-3562.D5967.6.patch
>
>
> Queries with limit clause (with reasonable number), for example
> {noformat}
> select * from src order by key limit 10;
> {noformat}
> makes operator tree, 
> TS-SEL-RS-EXT-LIMIT-FS
> But LIMIT can be partially calculated in RS, reducing size of shuffling.
> TS-SEL-RS(TOP-N)-EXT-LIMIT-FS

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message