diff options
author | Alexander Neben <alexander.neben@mongodb.com> | 2022-12-09 20:16:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-09 21:35:31 +0000 |
commit | c3d1400b558104f3944b019534097d16f1c61097 (patch) | |
tree | 87138c222a926d3f2a541b01ff4cfe91003f7087 /src/mongo/db/query/ce/maxdiff_histogram_test.cpp | |
parent | 887a6878ad584a9fcc54087112a4a2b4d39bb32e (diff) | |
download | mongo-c3d1400b558104f3944b019534097d16f1c61097.tar.gz |
Revert "SERVER-71310 Validate histograms"
This reverts commit ef685370c6e9ad3f169c9330c7b0c306f290a599.
Diffstat (limited to 'src/mongo/db/query/ce/maxdiff_histogram_test.cpp')
-rw-r--r-- | src/mongo/db/query/ce/maxdiff_histogram_test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/query/ce/maxdiff_histogram_test.cpp b/src/mongo/db/query/ce/maxdiff_histogram_test.cpp index d93eab2a381..80364fea0bb 100644 --- a/src/mongo/db/query/ce/maxdiff_histogram_test.cpp +++ b/src/mongo/db/query/ce/maxdiff_histogram_test.cpp @@ -199,7 +199,7 @@ TEST_F(HistogramTest, MaxDiffIntArrays) { auto rawData = genFixedValueArray(nElems, 1.0, 0.0); auto arrayData = nestArrays(rawData, 0 /* No empty arrays */); - auto estimator = createArrayEstimator(arrayData, nBuckets); + ArrayHistogram estimator = createArrayEstimator(arrayData, nBuckets); auto opCtx = makeOperationContext(); { @@ -208,7 +208,7 @@ TEST_F(HistogramTest, MaxDiffIntArrays) { const auto [tag, val] = makeInt64Value(2); value::ValueGuard vg(tag, val); - const double estimatedCard = estimateCardEq(*estimator, tag, val, true /* includeScalar + const double estimatedCard = estimateCardEq(estimator, tag, val, true /* includeScalar */); ASSERT_APPROX_EQUAL(4.0, estimatedCard, kTolerance); @@ -221,7 +221,7 @@ TEST_F(HistogramTest, MaxDiffIntArrays) { const auto [tag, val] = makeInt64Value(3); value::ValueGuard vg(tag, val); - const double estimatedCard = estimateCardRange(*estimator, + const double estimatedCard = estimateCardRange(estimator, false /*lowInclusive*/, value::TypeTags::MinKey, 0, @@ -242,7 +242,7 @@ TEST_F(HistogramTest, MaxDiffIntArrays) { const auto [highTag, highVal] = makeInt64Value(5); value::ValueGuard vgHigh(highTag, highVal); - const double estimatedCard = estimateCardRange(*estimator, + const double estimatedCard = estimateCardRange(estimator, false /*lowInclusive*/, lowTag, lowVal, @@ -267,8 +267,8 @@ TEST_F(HistogramTest, MaxDiffEmptyArrays) { << printValueArray(arrayData) << "\n" << std::flush; - const auto arrayHist = createArrayEstimator(arrayData, nBuckets); - ASSERT_EQ(arrayHist->getEmptyArrayCount(), emptyArrayCount); + ArrayHistogram arrayHist = createArrayEstimator(arrayData, nBuckets); + ASSERT_EQ(arrayHist.getEmptyArrayCount(), emptyArrayCount); } } // namespace |