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

Jesus Camacho Rodriguez commented on HIVE-14027:
------------------------------------------------

[~ashutoshc], fails are unrelated. Could you review the additional changes? 
Basically I extended the UnwrapRowContainer to deal with different types in the 
key for outer/inner part of the join. 

Btw, there are no q file changes because the only thing that is changing is the 
internal representation in the Join i.e. the object inspectors. I added 
additional tests to the new q file though.

> NULL values produced by left outer join do not behave as NULL
> -------------------------------------------------------------
>
>                 Key: HIVE-14027
>                 URL: https://issues.apache.org/jira/browse/HIVE-14027
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 1.2.1, 2.2.0
>            Reporter: Vaibhav Gumashta
>            Assignee: Jesus Camacho Rodriguez
>         Attachments: HIVE-14027.01.patch, HIVE-14027.02.patch, 
> HIVE-14027.03.patch, HIVE-14027.patch
>
>
> Consider the following setup:
> {code}
> create table tbl (n bigint, t string); 
> insert into tbl values (1, 'one'); 
> insert into tbl values(2, 'two');
> select a.n, a.t, isnull(b.n), isnull(b.t) from (select * from tbl where n = 
> 1) a  left outer join  (select * from tbl where 1 = 2) b on a.n = b.n;
> 1    one    false    true
> {code}
> The query should return true for isnull(b.n).
> I've tested by inserting a row with null value for the bigint column into 
> tbl, and isnull returns true in that case. 



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

Reply via email to