[SERVER-62831] [ABT] Add VM functions for some common array operations Created: 21/Jan/22  Updated: 10/Jan/23  Resolved: 10/Jan/23

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

Type: Task Priority: Major - P3
Reporter: Drew Paroski Assignee: Backlog - Query Execution
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

In the SBE Stage Builder, there were a number of common operations that were implemented using TraverseStage. In ABT, we are moving away from TraverseStage in favor of traverseP() and traverseF().

Here is a list of the the common array operations that were implemented using TraverseStage in the SBE Stage Builder:

  • A function that finds the min element or max element of an array.
  • A function that traverses an array and returns a new array containing only the elements that match a given predicate.
  • A function that takes an array and checks if it matches a specified size.
  • A function that takes an array and returns a contiguous slice of the array.


 Comments   
Comment by Mihai Andrei [ 03/Jan/23 ]

ted.tuckman@mongodb.com I don't think so as we will add functions to the vm on an as needed basis.

Comment by Ted Tuckman [ 20/Dec/22 ]

mihai.andrei@mongodb.com We're removing this from the ABT Lowering epic as it doesn't seem relevant. Is it relevant to SBE perf?

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