[SERVER-51788] Implement infrastructure for testing SBE stage builder Created: 01/Jul/20  Updated: 29/Oct/23  Resolved: 11/Nov/20

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

Type: Task Priority: Major - P3
Reporter: Anton Korshunov Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-11-02, Query 2020-11-16
Participants:

 Description   

We need to establish a reliable mechanism to test the SBE stage builder to make sure we build correct sub-trees from a QuerySolutionNode tree.

We consider two approaches to achieve this, but we need to make a further research and evaluate which one is preferrable.

  1. Use Explain format for SBE. Testing is done through integration tests. A query is executed with explain, which should output an SBE PlanStage tree in some defined JSON format, which can then be inspected to ensure that the return PlanStage tree is correct.
  2. Another approach is to use unittest infrastructure. We can construct a QuerySolutionNode tree and pass it through the stage builder. We can use some helpers and exploit the QueryPlanner to produce a QuerySolutionNode tree.


 Comments   
Comment by Githook User [ 11/Nov/20 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-51788 Implement infrastructure for testing SBE stage builder
Branch: master
https://github.com/mongodb/mongo/commit/b43f6fefe1ac3e941fd55d5452a1ee21e7ff0ae6

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