hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miklos Gergely (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-21231) HiveJoinAddNotNullRule support for range predicates
Date Wed, 27 Mar 2019 17:34:00 GMT

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

Miklos Gergely commented on HIVE-21231:
---------------------------------------

[~vgarg] we have a clean build, please take a look, and merge it if you agree. I've slightly
refactored 

HiveJoinAddNotNullRule to have a cleaner structure.

> HiveJoinAddNotNullRule support for range predicates
> ---------------------------------------------------
>
>                 Key: HIVE-21231
>                 URL: https://issues.apache.org/jira/browse/HIVE-21231
>             Project: Hive
>          Issue Type: Improvement
>          Components: CBO
>            Reporter: Jesus Camacho Rodriguez
>            Assignee: Miklos Gergely
>            Priority: Major
>              Labels: newbie
>         Attachments: HIVE-21231.01.patch, HIVE-21231.02.patch, HIVE-21231.03.patch, HIVE-21231.04.patch,
HIVE-21231.05.patch, HIVE-21231.06.patch
>
>
> For instance, given the following query:
> {code:sql}
> SELECT t0.col0, t0.col1
> FROM
>   (
>     SELECT col0, col1 FROM tab
>   ) AS t0
>   INNER JOIN
>   (
>     SELECT col0, col1 FROM tab
>   ) AS t1
> ON t0.col0 < t1.col0 AND t0.col1 > t1.col1
> {code}
> we could still infer that col0 and col1 cannot be null for any of the inputs. Currently
we do not.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message