-
Notifications
You must be signed in to change notification settings - Fork 348
Add $toDecimal operator #610
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #610 +/- ##
===========================================
+ Coverage 94.70% 94.74% +0.04%
===========================================
Files 16 16
Lines 3190 3217 +27
===========================================
+ Hits 3021 3048 +27
Misses 169 169
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
I have add the test and fix all bugs which I know. Thank you for such thorough code review and quick response. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround, please finalize the two last comments before I can merge your PR.
I have finalized the rest comments. Thank you. |
Congrats and thanks for the contribution. |
Hi everyone,
I just fully implemented $toDecimal operator of aggregation convertor with UTs.
The original behaviors of $toDecimal can be found in https://docs.mongodb.com/manual/reference/operator/aggregation/toDecimal/#behavior
There is one behavior that doesn't have error detail in document is
After I check the real error from MongoDB, I confirm it will raise a OperationFailure with detail. I also implement it with a UT.
If it's convenient, would you like to check and merge this request.
PS: I may found a bug in the base function
_Parse
when I wrote tests. I will open an issue for it later.Cheers!