[SERVER-81077] Handle cases where double is covered to a string with scientific notation Created: 14/Sep/23  Updated: 29/Oct/23  Resolved: 15/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Adi Agrawal Assignee: Adi Agrawal
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QE 2023-09-18
Participants:
Linked BF Score: 44

 Description   

A double like 0.000068432 will be converted to the following string 6.8432e-05. The test for round trip conversion between string and double in expression_test.cpp does not handle such a case.



 Comments   
Comment by Githook User [ 26/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-80021 Use format fmt to convert double to string

(cherry picked from commit 052ff0258ae00ed49e486e0a8acbffa81c7783d4)

SERVER-81077 Change ExpressionConvert test to convert double to string

(cherry picked from commit 39a130951177f23625ef56fec07aa49b4dc2878b)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f4ce5439c121ba8834d38eb2e8cb94eeb4f33e1e

Comment by Githook User [ 22/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-80021 Use format fmt to convert double to string

(cherry picked from commit 052ff0258ae00ed49e486e0a8acbffa81c7783d4)

SERVER-81077 Change ExpressionConvert test to convert double to string

(cherry picked from commit 39a130951177f23625ef56fec07aa49b4dc2878b)
Branch: v7.1
https://github.com/mongodb/mongo/commit/10917675e42af561849940d663da888ce614a49c

Comment by Githook User [ 20/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-80021 Use format fmt to convert double to string

(cherry picked from commit 052ff0258ae00ed49e486e0a8acbffa81c7783d4)

SERVER-81077 Change ExpressionConvert test to convert double to string

(cherry picked from commit 39a130951177f23625ef56fec07aa49b4dc2878b)
Branch: v5.0
https://github.com/mongodb/mongo/commit/5175c0cdd5ed9a1fb9d6509d59a1ad24ce0389e8

Comment by Githook User [ 20/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-80021 Use format fmt to convert double to string

(cherry picked from commit 052ff0258ae00ed49e486e0a8acbffa81c7783d4)

SERVER-81077 Change ExpressionConvert test to convert double to string

(cherry picked from commit 39a130951177f23625ef56fec07aa49b4dc2878b)
Branch: v6.0
https://github.com/mongodb/mongo/commit/5da4f25c4aa5dbc2efed07bc338ca20fb12060c4

Comment by Githook User [ 20/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-80021 Use format fmt to convert double to string

(cherry picked from commit 052ff0258ae00ed49e486e0a8acbffa81c7783d4)

SERVER-81077 Change ExpressionConvert test to convert double to string

(cherry picked from commit 39a130951177f23625ef56fec07aa49b4dc2878b)
Branch: v7.0
https://github.com/mongodb/mongo/commit/142db09ea2d130682ec2feda579f37689972abe4

Comment by Githook User [ 15/Sep/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-81077 Change ExpressionConvert test to convert double to string
Branch: master
https://github.com/mongodb/mongo/commit/39a130951177f23625ef56fec07aa49b4dc2878b

Generated at Thu Feb 08 06:45:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.