Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3363

CBO not choosing indexnl join when there are multiple join predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • COMP - Compiler

    Description

      CBO does not pick an indexnl join when there is more than one join predicate.
      The following query results in a hash join plan even though there is a valid indexnl hint on one of the predicates.

      select * from R join S on tobigint(R.u64) = S.u64 and tobigint(R.u256) /*+ indexnl(S_u256_idx) */ = S.u256 where R.rand < 10;

      Attachments

        Activity

          People

            vsarathy1 Vijay Sarathy
            vsarathy1 Vijay Sarathy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: