[SERVER-42418] Allow ExpressionMeta to parse find() $meta options Created: 25/Jul/19  Updated: 29/Oct/23  Resolved: 21/Aug/19

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

Type: Improvement Priority: Major - P3
Reporter: Ian Boros Assignee: Ian Boros
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-42288 Consolidate implementations of Docume... Closed
is depended on by DRIVERS-740 Support new $meta expressions in Mong... Closed
is depended on by SERVER-42560 Handle passing of metadata between Pl... Closed
Documented
Related
is related to RUBY-1941 Investigate changes in SERVER-42418: ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-08-26
Participants:

 Description   

Add support for "recordId" "indexKey" and "sortKey" in ExpressionMeta.

Like other meta types, the expression should returning "missing" if the associated metadata cannot be found on the Document.

This ticket will also involve modifying Document and DocumentMetadataFields. The main purpose of this work is to make ExpressionMeta supercede find() $meta.

Note that the work of figuring out how to pass metadata between the PlanStage and DocumentSource layer is tracked by SERVER-42560. This ticket is just about making $meta able to parse the new metadata options and retrieve them from a Document. Until we support expressions in find() projection, the change will not actually have any "visible" effects.



 Comments   
Comment by Ian Boros [ 03/Sep/19 ]

kay.kim

Yep! Is there already a docs ticket about that?

Comment by Githook User [ 21/Aug/19 ]

Author:

{'username': 'puppyofkosh', 'email': 'ian.boros@mongodb.com', 'name': 'Ian Boros'}

Message: SERVER-42418 Allow ExpressionMeta to parse find() meta options
Branch: master
https://github.com/mongodb/mongo/commit/d0662ae08dfff18472f5e91a3baee3687a33d7ea

Comment by Ian Boros [ 25/Jul/19 ]

Please talk to me before starting this.

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