[SERVER-40215] [FLE] Support and test explain command in mongocryptd Created: 19/Mar/19  Updated: 29/Oct/23  Resolved: 24/Apr/19

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

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-04-22, Query 2019-05-06
Participants:

 Description   

Explain support is mostly already working in mongocryptd but there are two additional tasks:

  1. Write any missing integration tests.
  2. Ensure that mongocryptd only accepts the jsonSchema argument in one place, either top-level or inside the nested command, depending the driver team's preference.


 Comments   
Comment by Githook User [ 24/Apr/19 ]

Author:

{'name': 'Ted Tuckman', 'username': 'TedTuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-40215 Support and test explain command in mongocryptd
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/26924751c3a381da8c743ad6b615cdc3467fc5f1

Comment by Nicholas Zolnierz [ 04/Apr/19 ]

Per driver's request, the jsonSchema should be at the top-level of explain as if it were a normal command:

{explain: {find: "test", filter: {}}, jsonSchema: {}}

Currently, the mongocryptd command layer extracts the "inner" command and forwards it to the query analysis, which expects jsonSchema to be present. To avoid a big refactor, the simplest approach would be to create a new inner command by appending the jsonSchema from the outer layer.

Generated at Thu Feb 08 04:54:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.