[SERVER-72807] [CQF] Allow NaN to be added to histograms Created: 12/Jan/23  Updated: 29/Oct/23  Resolved: 03/Feb/23

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

Type: Bug Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Misha Tyulenev
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-73386 Use NaN counters to compute CE Backlog
Related
is related to SERVER-71692 Test histograms with extreme numeric ... Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-02-06
Participants:

 Description   

Currently, valueSpread will convert two SBE values to doubles and return their difference. This is used to determine bucket boundaries during the maxdiff algorithm.

If one of the values is NaN, we hit the uassert that val1 <= val2 because NaN is neither <, >, or = to any other number. Even if we remove this uassert, we will return NaN from valueSpread which is undesirable.



 Comments   
Comment by Githook User [ 03/Feb/23 ]

Author:

{'name': 'Misha Tyulenev', 'email': 'misha.tyulenev@mongodb.com', 'username': ''}

Message: SERVER-72807 Add nanCount
Branch: master
https://github.com/mongodb/mongo/commit/ec72d32c5d55017d424dffbfee897fce4b8475c9

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