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

join with double intersect scan returns no rows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Cheshire-Cat
    • Fix Version/s: 6.6.2, 7.0.0
    • Component/s: query
    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      Yes

      Description

      Load travel-sample, drop all indexes created by default.

      create index def_type on `travel-sample`(type);
      create index def_city on `travel-sample`(city);

      select h.city, h.name, a.airportname from `travel-sample` a join `travel-sample` h on a.city = h.city where h.type = "hotel" and a.type = "airport";

      this query uses intersect scan of the two indexes under nested-loop join. Return no result.

      select h.city, h.name, a.airportname from `travel-sample` a join `travel-sample` h USE HASH(build) on a.city = h.city where h.type = "hotel" and a.type = "airport";

      this query forces hash join and returns 2212 result documents.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-7.0.0-4446 contains query commit 09578d9 with commit message:
            MB-44258 join with intersect scan returns no rows, regression from MB 42825

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4446 contains query commit 09578d9 with commit message: MB-44258 join with intersect scan returns no rows, regression from MB 42825
            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-6.6.2-9503 contains query commit ac48bde with commit message:
            MB-44258 join with intersect scan returns no rows, regression from MB 42825

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9503 contains query commit ac48bde with commit message: MB-44258 join with intersect scan returns no rows, regression from MB 42825
            Hide
            pierre.regazzoni Pierre Regazzoni added a comment -

            Verified on 7.0.0-4545 and 6.6.2-9502:

                "status": "success",
                "metrics": {
                    "elapsedTime": "4.717027042s",
                    "executionTime": "4.716915376s",
                    "resultCount": 2212,
                    "resultSize": 256376,
                    "serviceLoad": 6
                } 

            Show
            pierre.regazzoni Pierre Regazzoni added a comment - Verified on 7.0.0-4545 and 6.6.2-9502:     "status" : "success" ,     "metrics" : {         "elapsedTime" : "4.717027042s" ,         "executionTime" : "4.716915376s" ,         "resultCount" : 2212 ,         "resultSize" : 256376 ,         "serviceLoad" : 6     }

              People

              Assignee:
              pierre.regazzoni Pierre Regazzoni
              Reporter:
              marco.greco Marco Greco
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty