You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Miklos Gergely (JIRA)" <ji...@apache.org> on 2019/03/01 09:03:00 UTC

[jira] [Comment Edited] (HIVE-21231) HiveJoinAddNotNullRule support for range predicates

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

Miklos Gergely edited comment on HIVE-21231 at 3/1/19 9:02 AM:
---------------------------------------------------------------

[~vgarg] sure, this is far from the final version just a first draft. Wanted to see which q tests are failing :) Thanks for the advices, I'll write test for them.


was (Author: mgergely):
[~vgarg] sure, this is far from the final version just a first draft. Wanted to see which` q tests are failing :)

> 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
>
>
> 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)