You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/08/07 14:40:00 UTC

[jira] [Commented] (ASTERIXDB-3445) Hash join picked by CBO in the presence of non-equality join predicates.

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

ASF subversion and git services commented on ASTERIXDB-3445:
------------------------------------------------------------

Commit 780fa9e42e48bf99b525e24cf7ee524db0068d70 in asterixdb's branch refs/heads/master from Vijay Sarathy
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=780fa9e42e ]

[ASTERIXDB-3445][COMP] Hash join picked by CBO in the presence of non-equality join predicates

Ext-ref: MB-62489

Change-Id: I242700b7bd3a30ffddfc16cfb07901a35c417ba6
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18517
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Vijay Sarathy <vi...@couchbase.com>
Reviewed-by: Michael Blow <mb...@apache.org>
Integration-Tests: Michael Blow <mb...@apache.org>


> Hash join picked by CBO in the presence of non-equality join predicates.
> ------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-3445
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3445
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Vijay Sarathy
>            Assignee: Vijay Sarathy
>            Priority: Major
>              Labels: triaged
>
> When we have multiple join predicates with a mix of equality and non-equality predicates, CBO picks a hash join as an applicable join method with the incorrect assumption that the physical optimizer will use only the equality predicate as the hash join predicate and apply the non-equality predicate as a post join filter. However, currently, the physical optimizer does have this capability, and until this enhancement is added, CBO should not pick hash join as an applicable join method when there is a non-equality predicate even though there are other equality join predicates. A hash join should only be considered if all the join predicates are equality predicates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)