[SERVER-68446] Unit testing of simple histogram CE with all data types Created: 01/Aug/22  Updated: 29/Oct/23  Resolved: 30/Sep/22

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

Type: Task Priority: Major - P3
Reporter: Timour Katchaounov Assignee: Milena Ivanova
Resolution: Fixed Votes: 0
Labels: M1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2022-10-03
Participants:

 Description   

The primary input to CE is statistics, and most of all histograms. This tasks implements C++ unit tests that strictly test the CE module in isolation. Testing should be done as described in the design document Test Plan section.

That is:

Tests should vary queries in at least the following ways:

  • data types of constants in comparison conditions,
  • distance (spread) between constants,
  • edge case values (empty string, 0, very long string, max integer, etc) .

Assert that given certain statistics, the CE module produces a certain estimate for various queries. 

The statistics used in these tests are hand-crafted histograms that explore various edge cases, such as 1-bucket and 2-bucket histograms, boundary values of all types, etc.



 Comments   
Comment by Githook User [ 30/Sep/22 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-68446 Unit testing of simple histogram CE with all data types
Branch: master
https://github.com/mongodb/mongo/commit/1c4fafd4ae5c082f36a8af1442aa48174962b1b4

Generated at Thu Feb 08 06:10:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.