You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Jesus Camacho Rodriguez (JIRA)" <ji...@apache.org> on 2018/10/08 18:11:00 UTC
[jira] [Commented] (HIVE-20712) HivePointLookupOptimizer should
extract deep cases
[ https://issues.apache.org/jira/browse/HIVE-20712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16642252#comment-16642252 ]
Jesus Camacho Rodriguez commented on HIVE-20712:
------------------------------------------------
+1 (pending tests)
> HivePointLookupOptimizer should extract deep cases
> --------------------------------------------------
>
> Key: HIVE-20712
> URL: https://issues.apache.org/jira/browse/HIVE-20712
> Project: Hive
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
> Attachments: HIVE-20712.01.patch, HIVE-20712.01.patch
>
>
> currently IN extraction stops at the first level; as a result for the following query, the nested INs are not closed back.
> {code}
> create table t(a integer);
> create table t2(b integer);
> insert into t values (1),(2),(3),(4);
> insert into t2 values (1),(2),(3),(4);
> explain
> select * from t,t2 where
> a*a=b+3
> and
> a in (1,2,3,4)
> and
> b in (1,2,3,4)
> and (
> (a in (1,2) and b in (1,2) ) or
> (a in (2,3) and b in (2,3) )
> )
> ;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)