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

Gunther Hagleitner commented on HIVE-12738:
-------------------------------------------

The fix assumes that there are two parents... This could be an n-way join. In 
general, isn't there a more robust way to fix this? There are other ways of 
having multi parents. 

I see two fixes: One where the function just searches all branches, probably 
depth first. The other where we avoid backtracking and just terminate the walk 
when we find a vectorized reduce that produces rows. That should be sufficient 
no?

> subquery with NOT IN failing due to ClassCastException
> ------------------------------------------------------
>
>                 Key: HIVE-12738
>                 URL: https://issues.apache.org/jira/browse/HIVE-12738
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Matt McCline
>            Assignee: Matt McCline
>            Priority: Critical
>         Attachments: HIVE-12738.01.patch
>
>
> {code}
> create table student(
>             name string,
>             age int,
>             gpa double)
> create table voter(
>             name string,
>             age int,
>             registration string,
>             contributions float)
> select * 
> from student 
> where not student.age in
> (select age from voter) 
> order by age;
> {code}
> Fails in Tez -- Vectorized Reduce.



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

Reply via email to