[SERVER-86206] Block-enabled dateDiff() was generating unsupported calls Created: 05/Feb/24  Updated: 06/Feb/24  Resolved: 06/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alberto Massari Assignee: Alberto Massari
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2024-02-19
Participants:
Linked BF Score: 149

 Description   

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(...)



 Comments   
Comment by Githook User [ 06/Feb/24 ]

Author:

{'name': 'Alberto Massari', 'email': 'alberto.massari@mongodb.com', 'username': 'albymassari'}

Message: SERVER-86206 Generate a supported translation for vectorized dateDiff (#18693)

GitOrigin-RevId: 130e46cbfb31610b160d7ba6467beffad58f04be
Branch: master
https://github.com/mongodb/mongo/commit/979023e8a46273a1bc54ea3c506cf054b045ab1d

Generated at Thu Feb 08 06:59:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.