Support rooted $or queries with partial indexes in SBE plan cache

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-94212 describes how partial index discriminators are effectively broken for root $or queries (using the subplanner) for the SBE plan cache, which can lead to incorrect query results. That ticket disabled such affected queries from using SBE.

      The task in this ticket is to design and implement a mechanism to make the SBE plan cache robust to this problem. One idea is to make the partial index discriminators sunplanner aware, which may involve encoding a discriminator for each branch of the rooted $or instead of just one globally for a partial index.

            Assignee:
            Unassigned
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: