[SERVER-59098] implicit conversion from 'long long' to 'double' in window_function_sum.cpp Created: 04/Aug/21  Updated: 29/Oct/23  Resolved: 19/Aug/21

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

Type: Bug 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:
Depends
is depended on by SERVER-59233 Fix or suppress warnings when buildin... Closed
Related
related to SERVER-57633 Remove disable warnings as error for ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-08-23
Participants:

 Description   

Reported by Xcode 12.

Similar issue reported in SERVER-48079 and SERVER-SERVER-48076.

Function added in SERVER-53713 to support 5.0 aggregation functionality.

src/mongo/db/pipeline/window_function/window_function_sum.cpp:70:27: error: implicit conversion from 'std::__1::numeric_limits<long long>::type' (aka 'long long') to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion]
        val.getDouble() < std::numeric_limits<long long>::max()) {  // Narrow double to integral



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 19/Aug/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-57633 SERVER-59098 fix implicit long long to double conversion in window_function_sum.cpp
Branch: master
https://github.com/mongodb/mongo/commit/cbb527e1b930a4d55deb499312dce917cf491558

Generated at Thu Feb 08 05:46:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.