hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (Jira)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-22107) Correlated subquery producing wrong schema
Date Wed, 21 Aug 2019 21:44:00 GMT

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

Ashutosh Chauhan commented on HIVE-22107:
-----------------------------------------

+1

> Correlated subquery producing wrong schema
> ------------------------------------------
>
>                 Key: HIVE-22107
>                 URL: https://issues.apache.org/jira/browse/HIVE-22107
>             Project: Hive
>          Issue Type: Bug
>          Components: Logical Optimizer
>    Affects Versions: 4.0.0
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>            Priority: Major
>         Attachments: HIVE-22107.1.patch, HIVE-22107.2.patch, HIVE-22107.3.patch, HIVE-22107.4.patch,
HIVE-22107.5.patch
>
>
> *Repro*
> {code:sql}
> create table test(id int, name string,dept string);
> insert into test values(1,'a','it'),(2,'b','eee'),(NULL, 'c', 'cse');
> select distinct 'empno' as eid, a.id from test a where NOT EXISTS (select c.id from test
c where a.id=c.id);
> {code}
> {code}
> +-------+--------+
> |  eid  |  a.id  |
> +-------+--------+
> | NULL  | empno  |
> +-------+--------+
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message