[SERVER-13436] Allow creating/using dollar-sign prefixed field names Created: 01/Apr/14  Updated: 09/Jul/16  Resolved: 02/Apr/14

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: 2.6.0-rc2
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Andre Spiegel Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-8436 Aggregation pipeline cannot process s... Backlog
Related
Backwards Compatibility: Minor Change
Participants:

 Description   

It is currently not possible to handle field names with dollar signs in aggregation (e.g. in $project). However, there are cases where this is perfectly valid, e.g. when trying to aggregate over system.profile, where queries and all their operators are treated as data.

For example, if system.profile contains:

{"$query" : { "date" : { "$gte" : ISODate("...") } } }

There is no way to project the $gte field. The only workaround, currently, seems to be to dump the collection to BSON or JSON, and replace "$gte" with "dgte" or something similar, then aggregate over the modified collection.



 Comments   
Comment by Daniel Pasette (Inactive) [ 02/Apr/14 ]

dup of SERVER-8436

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