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

[CQF] Lower PathCompare [eq] using cmp3w

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-04, QO 2023-09-18
    • 200

      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.

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

              Created:
              Updated:
              Resolved: