hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal V (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-7359) Stats based compute query replies fail to do simple column transforms
Date Fri, 19 Sep 2014 05:24:33 GMT

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

Gopal V commented on HIVE-7359:
-------------------------------

It fires a full-table scan instead of being optimized, but correctness before performance.

LGTM - +1

> Stats based compute query replies fail to do simple column transforms
> ---------------------------------------------------------------------
>
>                 Key: HIVE-7359
>                 URL: https://issues.apache.org/jira/browse/HIVE-7359
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.0, 0.14.0, 0.13.1
>            Reporter: Gopal V
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-7359.patch
>
>
> The following two queries return the same answer (the second one is incorrect)
> {code}
> hive> set hive.compute.query.using.stats=true;
> hive> select count(1) from trips;
> OK
> 187271461
> Time taken: 0.173 seconds, Fetched: 1 row(s)
> hive> select count(1)/5109828 from trips;
> OK
> 187271461
> Time taken: 0.125 seconds, Fetched: 1 row(s)
> {code}
> The second query should have output 36.649 instead of the returning the value of count(1).



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

Mime
View raw message