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

[CQF] Sort unioned intervals in sargable node

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-11-14

      We have some tests where identical explains should be produced, but aren't exactly equal due to the unioned intervals in a sargable node not being sorted. This is not an issue for intersections.

      It would be nice if we could canonicalize union intervals to help with readability and checks for identical plans.

       

      One possible way to approach is to extend IndexPath3WCompare to handle all abt types and use it to sort the BoolExpr tree.

            Assignee:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Reporter:
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: