From aa3c6eb2c7b4f76521004461e41b4a8b2022586e Mon Sep 17 00:00:00 2001 From: Dan Larkin-York Date: Fri, 29 Oct 2021 22:30:05 +0000 Subject: SERVER-61106 Use woCompare to generate timeseries summaries --- jstests/core/timeseries/timeseries_min_max.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'jstests/core') 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)}); }); })(); -- cgit v1.2.1