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

Ashutosh Chauhan commented on HIVE-16002:
-----------------------------------------

Can you also add test case from HIVE-5873

> Correlated IN subquery with aggregate asserts in sq_count_check UDF
> -------------------------------------------------------------------
>
>                 Key: HIVE-16002
>                 URL: https://issues.apache.org/jira/browse/HIVE-16002
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>         Attachments: HIVE-16002.1.patch, HIVE-16002.2.patch
>
>
> Reproducer
> {code:SQL}
> create table t(i int, j int);
> insert into t values(0,1), (0,2);
> create table tt(i int, j int);
> insert into tt values(0,3);
> select * from t where i IN (select count(i) from tt where tt.j = t.j);
> {code}



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

Reply via email to