diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2021-10-29 22:30:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-29 23:14:19 +0000 |
commit | aa3c6eb2c7b4f76521004461e41b4a8b2022586e (patch) | |
tree | fc8502bb395e864f3f4939d729df8ada2821db77 /jstests/core | |
parent | b08e22b646d2ba2893bf890bf20d25ce5d4ff1b6 (diff) | |
download | mongo-aa3c6eb2c7b4f76521004461e41b4a8b2022586e.tar.gz |
SERVER-61106 Use woCompare to generate timeseries summaries
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/timeseries/timeseries_min_max.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/core/timeseries/timeseries_min_max.js b/jstests/core/timeseries/timeseries_min_max.js index 560c7337a77..d6f0be0b8fb 100644 --- a/jstests/core/timeseries/timeseries_min_max.js +++ b/jstests/core/timeseries/timeseries_min_max.js @@ -103,5 +103,13 @@ TimeseriesTest.run((insert) => { runTest({a: 1, c: 1}, {a: 1, c: 1}, {a: 1, c: 1}); runTest({b: 2}, {a: 1, b: 2, c: 1}, {a: 1, b: 2, c: 1}); runTest({c: 3, d: 3}, {a: 1, b: 2, c: 1, d: 3}, {a: 1, b: 2, c: 3, d: 3}); + clearColl(); + + // We correctly handle canonical type + runTest({a: Number(1.5)}, {a: Number(1.5)}, {a: Number(1.5)}); + runTest({a: NumberLong(2)}, {a: Number(1.5)}, {a: NumberLong(2)}); + runTest({a: NumberInt(1)}, {a: NumberInt(1)}, {a: NumberLong(2)}); + runTest({a: NumberDecimal(2.5)}, {a: NumberInt(1)}, {a: NumberDecimal(2.5)}); + runTest({a: Number(0.5)}, {a: Number(0.5)}, {a: NumberDecimal(2.5)}); }); })(); |