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 2016/08/22 04:20:20 UTC

[jira] [Commented] (HIVE-14594) CBO: Calcite Operator To Hive Operator(Calcite Return Path): Fix wrong result in join_filters_overlap

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

Vineet Garg commented on HIVE-14594:
------------------------------------

Simple repro:

Query: {code} select * from a left outer join a b on (a.key=b.key AND a.value=50 AND b.value=50) {code}
Expected Result: 
{code} 
100	40	NULL	NULL
100	50	100	50
100	60	NULL	NULL
{code}

Actual Result:
{code}
100	40	NULL	50
100	50	100	50
100	60	NULL	50
{code}

> CBO: Calcite Operator To Hive Operator(Calcite Return Path): Fix wrong result in join_filters_overlap
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-14594
>                 URL: https://issues.apache.org/jira/browse/HIVE-14594
>             Project: Hive
>          Issue Type: Sub-task
>          Components: CBO
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>
> Setup
> {code} create table a as SELECT 100 as key, a.value as value FROM src LATERAL VIEW explode(array(40, 50, 60)) a as value limit 3; {code}
> Query:
> {code} select * from a left outer join a b on (a.key=b.key AND a.value=50 AND b.value=50) left outer join a c on (a.key=c.key AND a.value=60 AND c.value=60); {code}
> Expected Result:
> {code}
> 100	40	NULL	NULL	NULL	NULL
> 100	50	100	50	NULL	NULL
> 100	60	NULL	NULL	100	60
> {code}
> Actual Result:
> {code}
> 100	40	NULL	50	NULL	60
> 100	50	100	50	NULL	60
> 100	60	NULL	50	100	60
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)