hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vineet Garg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-17726) Using exists may lead to incorrect results
Date Mon, 16 Oct 2017 18:00:02 GMT

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

Vineet Garg commented on HIVE-17726:
------------------------------------

Hi [~pvary].  This does look like caused by HIVE-17726. Is there a JIRA associated with the
failure? I'll update the test and will commit it.

> Using exists may lead to incorrect results
> ------------------------------------------
>
>                 Key: HIVE-17726
>                 URL: https://issues.apache.org/jira/browse/HIVE-17726
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Zoltan Haindrich
>            Assignee: Vineet Garg
>         Attachments: HIVE-17726.1.patch, HIVE-17726.2.patch, HIVE-17726.3.patch
>
>
> {code}
> drop table if exists tx1;
> create table tx1 (a integer,b integer);
> insert into tx1	values  (1, 1),
>                         (1, 2),
>                         (1, 3);
> select count(*) as result,3 as expected from tx1 u
> where exists (select * from tx1 v where u.a=v.a and u.b <> v.b);
> select count(*) as result,3 as expected from tx1 u
> where exists (select * from tx1 v where u.a=v.a and u.b <> v.b limit 1);
> {code}
> current results are 6 and 2.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message