[SERVER-68487] add BSONElement method to check for NaN field values Created: 02/Aug/22 Updated: 29/Oct/23 Resolved: 02/Aug/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.2.23, 6.0.1, 4.4.16, 5.0.11, 6.1.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Benety Goh | Assignee: | Benety Goh |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Backport Requested: |
v6.0, v5.0, v4.4, v4.2
|
||||||||||||||||
| Sprint: | Execution Team 2022-08-08 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
The BSONElement contains a number of methods that coerce the field value into the range for a given type. Some of these methods have internal rules for converting NaN values, which apply to the Double and Decimal types specifically. Some use cases may require different handling for NaN values rather than depend on the implicit conversion rules. See BSONElement::safeNumberLong() for an example. |
| Comments |
| Comment by Benety Goh [ 03/Aug/22 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit ed25ebe0d87dd2521fbfc5534ba7af7de69aad4d) |
| Comment by Githook User [ 03/Aug/22 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit ed25ebe0d87dd2521fbfc5534ba7af7de69aad4d) |
| Comment by Benety Goh [ 03/Aug/22 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit ed25ebe0d87dd2521fbfc5534ba7af7de69aad4d) |
| Comment by Githook User [ 02/Aug/22 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit ed25ebe0d87dd2521fbfc5534ba7af7de69aad4d) |
| Comment by Benety Goh [ 02/Aug/22 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'} Message: |