[SERVER-11679] improve query planner test Created: 13/Nov/13  Updated: 11/Jul/16  Resolved: 19/Nov/13

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 2.5.5

Type: Task Priority: Minor - P4
Reporter: David Storch Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-10471 develop query planner Closed
Participants:

 Description   

db/query/query_planner_test.cpp currently uses a function called dumpSolutions() to display the list of generated query plans. It does not have assertions to automatically verify that the expected solutions were in fact generated by the query planner. We would like to better automate this test.

We want to be able to assert that a particular solution was generated by the planner. This could look something like an "expectSolution()" function which takes a textual representation of a QuerySolution and confirms that this solution was in fact generated by the planner.



 Comments   
Comment by Githook User [ 12/Dec/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-11679 extend query planner test for verification of index bounds

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/b28ffc9ae294cfb4390882cb21c1ca32d2d90a47

Comment by Githook User [ 04/Dec/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-11679 extend query planner test for verifying filters

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/7816de1dbc43f93c06cfeb28ab5f7d65009e8372

Comment by Githook User [ 20/Nov/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-11679 add some missing 'golden query' tests

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/57a20249889f413febee14f5fa1c731f1bcf8e20

Comment by Githook User [ 18/Nov/13 ]

Author:

{u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}

Message: SERVER-11679 improve query planner unit test

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/d2b8a2070709d8b9a2646a0a33467a9480c728dd

Generated at Thu Feb 08 03:26:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.