hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12277) Hive macro results on macro_duplicate.q different after adding ORDER BY
Date Thu, 29 Oct 2015 17:02:27 GMT

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

Jason Dere commented on HIVE-12277:
-----------------------------------

+1 if tests look good.

> Hive macro results on macro_duplicate.q different after adding ORDER BY
> -----------------------------------------------------------------------
>
>                 Key: HIVE-12277
>                 URL: https://issues.apache.org/jira/browse/HIVE-12277
>             Project: Hive
>          Issue Type: Bug
>          Components: Macros
>            Reporter: Jason Dere
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-12277.01.patch
>
>
> Added an order-by to the query in macro_duplicate.q:
> {noformat}
> -select math_square(a), math_square(b),factorial(a), factorial(b), math_add(a), math_add(b),int(c)
from macro_testing;
> \ No newline at end of file
> +select math_square(a), math_square(b),factorial(a), factorial(b), math_add(a), math_add(b),int(c)
from macro_testing order by int(c);
> {noformat}
> And the results from math_add() changed unexpectedly:
> {noformat}
> -1      4       1       2       2       4       3
> -16     25      24      120     8       10      6
> +1      4       1       2       1       4       3
> +16     25      24      120     16      25      6
> {noformat}



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

Mime
View raw message