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

[CQF] Sort unioned intervals in sargable node

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2022-11-14

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: