[SERVER-68107] $densify with dynamic bounds array causes "A bounding array must contain either both dates or both numeric types" error Created: 18/Jul/22 Updated: 19/Jul/22 Resolved: 19/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Cooke | Assignee: | Chris Kelly |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
I am trying to add missing data to my time series with the `$densify` operator. But it does not seem to work when I specify any dynamic values in the bounds array. *Example* So with the following `$densify` operator I would expect it to work properly: ] But I get the following error: `A bounding array must contain either both dates or both numeric types` Which does not make sense, because `{ $week: "$$CLUSTER_TIME" }` evalutes to a number, and 0 is definetly a number last I checked. Sounds like a bug with mongo to me, anyone know? |
| Comments |
| Comment by Chris Kelly [ 19/Jul/22 ] |
|
Closing this one as it duplicates |