hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-11432) Hive macro give same result for different arguments
Date Sun, 02 Aug 2015 00:56:04 GMT

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

Pengcheng Xiong updated HIVE-11432:
-----------------------------------
    Attachment: HIVE-11432.01.patch

[~mendax], could you please try the patch and see if the problem is resolved? Thanks.

> Hive macro give same result for different arguments
> ---------------------------------------------------
>
>                 Key: HIVE-11432
>                 URL: https://issues.apache.org/jira/browse/HIVE-11432
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jay Pandya
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-11432.01.patch
>
>
> If you use hive macro more than once while processing same row, hive returns same result
for all invocations even if the argument are different. 
> Example : 
> > CREATE  TABLE macro_testing(
>   a int,
>   b int,
>   c int)
> > select * from macro_testing;
> 1	2	3
> 4	5	6
> 7	8	9
> 10	11	12
> > create temporary macro math_square(x int)
>    x*x;
> > select math_square(a), b, math_square(c)  from macro_testing;
> 9	2	9
> 36	5	36
> 81	8	81
> 144	11	144



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

Mime
View raw message