You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/15 03:06:00 UTC

[jira] [Work logged] (HIVE-22107) Correlated subquery producing wrong schema

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

ASF GitHub Bot logged work on HIVE-22107:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Oct/19 03:05
            Start Date: 15/Oct/19 03:05
    Worklog Time Spent: 10m 
      Work Description: jcamachor commented on pull request #755: HIVE-22107 Correlated subquery producing wrong schema
URL: https://github.com/apache/hive/pull/755
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 328280)
    Time Spent: 20m  (was: 10m)

> 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
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-22107.1.patch, HIVE-22107.2.patch, HIVE-22107.3.patch, HIVE-22107.4.patch, HIVE-22107.5.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> *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.4#803005)