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

Block-enabled dateDiff() was generating unsupported calls

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2024-02-19
    • 149

      When dateDiff had the block value in the $endDate argument, the vectorizer is negating the output of the call with the switched arguments, but negate is not yet block-enabled. The workaround for now is to perform a

      0 - dateDiff(...)
      

            Assignee:
            alberto.massari@mongodb.com Alberto Massari
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: