Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71574

Verify jstests/aggregation/sources/densify/decimal.js

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • Hide

      Use PR for SERVER-68710.

      Show
      Use PR for SERVER-68710 .
    • QO 2022-12-26

      jstests/aggregation/sources/densify/decimal.js

      SERVER-68710 is addressing an issue with arrayEq (and related helpers in jstests/aggregation/extras/utils.js), where comparison of Object subtypes (NumberLong, ObjectId, ...) always evaluated to true.

      And this test fails on patch runs:

      https://spruce.mongodb.com/task/mongodb_mongo_master_linux_64_debug_required_aggregation_auth_patch_007aef8fa15b3c54019708ddaa36098d61462e06_637cd0f5e3c331777896fa42_22_11_22_13_40_03/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Error:

      [js_test:decimal] Fixture status:
      ...
      [js_test:decimal] 2022-11-22T14:17:52.741Z assert failed : Expected:
      [js_test:decimal] [
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : 0
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("0.124356873589445")
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("NaN")
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("NaN")
      [js_test:decimal] 	}
      [js_test:decimal] ]
      [js_test:decimal] Got:
      [js_test:decimal] [
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : 0
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("0.124356873589445")
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("0.248713747178890")
      [js_test:decimal] 	},
      [js_test:decimal] 	{
      [js_test:decimal] 		"val" : NumberDecimal("0.373070620768335")
      [js_test:decimal] 	}
      [js_test:decimal] ]
      ...
      
      

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: