There is at least one bug in the work done for CSHARP-3343 to support $dateXyz operators. The following method should return TimeSpan not DateTime:
The existing unit test does not fail because we are only asserting on the generated MQL which is correct. A full round trip integration test probably would have revealed the issue.
Let's convert all unit tests for CSHARP-3343 to integration tests.
- related to
-
CSHARP-3343 Expressions for datetime durations
- Closed