In an aggregation pipeline, if $$NOW is referenced after a sub-pipeline stage, it can have a different value inside and outside of a sub-pipeline.
- is caused by
-
SERVER-87159 Avoid generating unused runtime constants in ExpressionContext
-
- Closed
-
- is related to
-
SERVER-114196 $$NOW unavailable after $unionWith in aggregation pipeline
-
- Closed
-
-
SERVER-116235 When saving variables from sub-pipeline, use correct ExpressionContext
-
- Closed
-
-
SERVER-107976 Split ExpressionContext class to simplify OperationContext propagation
-
- Needs Scheduling
-
- related to
-
SERVER-116293 Make ExpressionContext::variables private and provide getters
-
- Closed
-