Skip to content

DateFromParts millisecondsOf returns "milliseconds" as $dateFromParts function but it should be millisecond [DATAMONGO-2671] #3523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Dec 12, 2020 · 2 comments
Assignees
Labels
in: aggregation-framework Aggregation framework support type: bug A general bug

Comments

@spring-projects-issues
Copy link

taher435 opened DATAMONGO-2671 and commented

As mentioned in the mongodb issue log - https://jira.mongodb.org/browse/SERVER-30524 - the date from part operator for milliseconds was changed from "milliseconds" to "millisecond" (singular). However, when using the date part from spring mongodb, it still creates the aggregation query with "milliseconds" and hence the query fails with an unrecognized operator error. Based on the initial investigation, it feels like this line causes the issue


Referenced from: pull request #897

@spring-projects-issues
Copy link
Author

Christoph Strobl commented

thanks for reporting

@mp911de
Copy link
Member

mp911de commented Jan 11, 2021

Fixed via #897.

@mp911de mp911de closed this as completed Jan 11, 2021
@mp911de mp911de assigned christophstrobl and unassigned mp911de Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: aggregation-framework Aggregation framework support type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants