hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vineet Garg (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HIVE-16229) Wrong result for correlated scalar subquery with aggregate
Date Wed, 29 Mar 2017 23:16:41 GMT

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

Vineet Garg edited comment on HIVE-16229 at 3/29/17 11:16 PM:
--------------------------------------------------------------

No not yet, I'll open a JIRA

Edit: opened HIVE-16330


was (Author: vgarg):
No not yet, I'll open a JIRA

> Wrong result for correlated scalar subquery with aggregate
> ----------------------------------------------------------
>
>                 Key: HIVE-16229
>                 URL: https://issues.apache.org/jira/browse/HIVE-16229
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>             Fix For: 2.2.0
>
>         Attachments: HIVE-16228.2.patch, HIVE-16229.1.patch
>
>
> Query:
> {code:SQL}
> select * from part where p_size > (select count(*) from part p where p.p_mfgr = part.p_mfgr
group by p_type);
> {code}
> Expected results:
> {code}
> ERROR: more than one row produced by subquery
> {code}
> Actual
> {code}
> 49671	almond antique gainsboro frosted violet	Manufacturer#4	Brand#41	SMALL BRUSHED BRASS
10	SM BOX	1620.67	ccounts run quick
> 49671	almond antique gainsboro frosted violet	Manufacturer#4	Brand#41	SMALL BRUSHED BRASS
10	SM BOX	1620.67	ccounts run quick
> 49671	almond antique gainsboro frosted violet	Manufacturer#4	Brand#41	SMALL BRUSHED BRASS
10	SM BOX	1620.67	ccounts run quick
> 49671	almond antique gainsboro frosted violet	Manufacturer#4	Brand#41	SMALL BRUSHED BRASS
10	SM BOX	1620.67	ccounts run quick
> 49671	almond antique gainsboro frosted violet	Manufacturer#4	Brand#41	SMALL BRUSHED BRASS
10	SM BOX	1620.67	ccounts run quick
> 48427	almond antique violet mint lemon	Manufacturer#4	Brand#42	PROMO POLISHED STEEL	39
SM CASE	1375.42	hely ironic i
> 48427	almond antique violet mint lemon	Manufacturer#4	Brand#42	PROMO POLISHED STEEL	39
SM CASE	1375.42	hely ironic i
> ........
> Time taken: 13.742 seconds, Fetched: 123 row(s)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message