Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62489

Hash join picked by CBO in the presence of non-equality join predicates.

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      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 not 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.

      Attachments

        Issue Links

          Activity

            People

              vijay.sarathy Vijay Sarathy
              vijay.sarathy Vijay Sarathy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty