[SERVER-53290] Replace $function Unpacking in Timeseries Collection with $unpackBucket Created: 08/Dec/20  Updated: 29/Oct/23  Resolved: 14/Jan/21

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 5.0 Required
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-54800 Support $indexStats aggregation stage... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-01-25
Participants:

 Description   

Storage execution has added temporary placeholder javascript code via $function to implement bucket unpacking to power the timeseries view. When the DocumentSource $unpackBucket stage is ready, we need to replace the $function code here with $unpackBucket. When doing this work please also be mindful that we will need to read the user-defined timeField and metaField from the view catalog and populate inputs to the $unpackBucket stage. 

We are also wondering if we actually need to implement parsing here. Is it possible to inject this stage somewhere in the view resolution pipeline.



 Comments   
Comment by Githook User [ 12/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53290 Replace unpacking js function in Timeseries Collection with _internalUnpackBucket
Branch: master
https://github.com/mongodb/mongo/commit/16f694280539586cd0e11b0b5455f3f7ac379675

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