[SERVER-58268] [SBE] $in match expression fails to match a document when NaN value types differ Created: 05/Jul/21  Updated: 18/Aug/21  Resolved: 09/Jul/21

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

Type: Bug Priority: Major - P3
Reporter: Mindaugas Malinauskas Assignee: Mindaugas Malinauskas
Resolution: Duplicate Votes: 0
Labels: sbe-rollout
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-58193 Add test coverage for $in matching ag... Closed
Duplicate
duplicates SERVER-57751 Hash of Decimal NaN and double NaN va... Closed
Operating System: ALL
Steps To Reproduce:

 

 db.coll.insert({a: {b: NaN}})
 db.coll.aggregate([{$match: {"a.b": {$in: [NumberDecimal("-NaN"), ["deposit", {str: "overriding"}]]}}}])

Expected: to match the document.
Actual: document does not match.

Sprint: Query Execution 2021-07-12, Query Execution 2021-07-26
Participants:
Linked BF Score: 33

 Description   

$in match expression fails to match a document when NaN value types differ, that is when one type is double and another Decimal128.

 

 


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