Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83220

Lookup between unsplittable collections gets incorrectly pushed down to SBE

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • QE 2023-12-11, QE 2023-12-25, QE 2024-01-08, QE 2024-01-22, QE 2024-02-05, QE 2024-02-19

      Currently, SBE doesn't support remote reads, so we check that all involved collections are unsharded, before we do $lookup in SBE:

      https://github.com/mongodb/mongo/blob/fd12276470b4fc66c1b9d90cc8434907c8be86d6/src/mongo/db/pipeline/pipeline_d.cpp#L486

      We need to check for data colocation instead.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: