[COMPASS-3490] "new Date()" support for aggregation pipeline builder Created: 07/Mar/19  Updated: 13/Mar/19  Resolved: 13/Mar/19

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Massimiliano Marcon Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by COMPASS-3183 Aggregation Builder does not support ... Closed
Related
is related to COMPASS-3128 Restart changes $regex favorite to in... Closed
is related to SERVER-23656 Current timestamp variable for aggreg... Closed
Sprint: Iteration Antelope

 Description   

In the aggregation pipeline builder, new Date() does not work and there is no other way to generate the current date.



 Comments   
Comment by Massimiliano Marcon [ 13/Mar/19 ]

The Server is introducing a new $$NOW system variable for this exact use case (SERVER-23656). We prefer to not do this in Compass as it introduces complexity when exporting the aggregation to different languages and also to avoid confusion on whether the comparison is done agains the local machine's time or the server's time.

Generated at Wed Feb 07 22:33:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.