You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/07/14 01:50:00 UTC

[jira] [Commented] (IMPALA-10766) Better selectivity for = (equals)

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

ASF subversion and git services commented on IMPALA-10766:
----------------------------------------------------------

Commit 4c5fa0591706ec1399a6b92ab10e7028ad159aef in impala's branch refs/heads/master from liuyao
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=4c5fa05 ]

IMPALA-10766: Better selectivity for =,not distinct

For = :
If the right side is null, then selectivity is 0.
If the left side is null, null should be excluded when calculating
selectivity.

For is not distinct from :
If the right side is null, non null should be excluded when calculating
selectivity, and only null should be included.
If the left side is null and the right side is not null, null should be
excluded when calculating selectivity, including part of non-null.

Testing :
Change the UT, modify the selectivity calculation error, add two new
cases column != null and column = null

Change-Id: Ib8ec62f2355a7036125cc0d261b790644b9f4b60
Reviewed-on: http://gerrit.cloudera.org:8080/17637
Tested-by: Impala Public Jenkins <im...@cloudera.com>
Reviewed-by: Qifan Chen <qc...@cloudera.com>


> Better selectivity for = (equals)
> ---------------------------------
>
>                 Key: IMPALA-10766
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10766
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend
>    Affects Versions: Impala 3.4.0
>            Reporter: liuyao
>            Assignee: liuyao
>            Priority: Major
>
> When calculating the selectivity of =, the null value is not considered. For =, the null values are always false



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org