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

[CQF] Lower PathCompare [eq] using cmp3w

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-04, QO 2023-09-18
    • 5

    Description

      PathCompare operators gt/lt/gte/lte and neq are all lowered using cmp3w, meaning they can compare across types, always returning true or false unless one of the operands is Nothing.
       
      The eq operator is currently lowered using sbe::EPrimBinary::eq. This does not support comparison across types. It returns Nothing if the operands are not of the same type.
       
      It would be convenient if the behaviors, particularly of eq and neq, were consistent. We should update the eq lowering to use cmp3w.

      Attachments

        Activity

          People

            militsa.sotirova@mongodb.com Militsa Sotirova
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: