You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vineet Garg (JIRA)" <ji...@apache.org> on 2019/08/13 22:41:00 UTC
[jira] [Updated] (HIVE-22107) Correlated subquery producing wrong
schema
[ https://issues.apache.org/jira/browse/HIVE-22107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vineet Garg updated HIVE-22107:
-------------------------------
Status: Patch Available (was: Open)
> 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
>
>
> *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
(v7.6.14#76016)