hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <>
Subject [jira] [Commented] (HIVE-18241) Query with LEFT SEMI JOIN producing wrong result
Date Tue, 12 Dec 2017 02:29:02 GMT


Jesus Camacho Rodriguez commented on HIVE-18241:

[~vgarg], another quick comment before pushing it: could we add some data to the new test
or modify the test so that it produces data (even if it is a few rows)? I think that will
be important so we do not regress in the future.

> Query with LEFT SEMI JOIN producing wrong result
> ------------------------------------------------
>                 Key: HIVE-18241
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>         Attachments: HIVE-18241.1.patch, HIVE-18241.2.patch
> Following query produces wrong result
> {code:sql}
> select key, value from src outr left semi join (select a.key, b.value from src a join
(select distinct value from src) b on a.value > b.value group by a.key, b.value) inr on
outr.key=inr.key and outr.value=inr.value;
> {code}
> Expected result is empty set but it output bunch of rows.
> Schema for {{src}} table could be find in {{data/scripts/q_test_init.sql}}

This message was sent by Atlassian JIRA

View raw message