[SERVER-83007] Add support for translating Operations::Or BinaryOp ABT node Created: 09/Nov/23  Updated: 19/Jan/24  Resolved: 16/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Alberto Massari Assignee: Projjal Chanda
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-83329 Add support for block-enabled convert... Open
is depended on by SERVER-82988 $or does not use block processing Closed
is depended on by SERVER-83323 Add support for block-enabled Operati... Closed
is depended on by SERVER-83324 Add support for block-enabled Operati... Closed
Problem/Incident
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Participants:
Linked BF Score: 35

 Description   

The builtinValueBlockLogicalOr VM builtin instruction is already available, so we are just missing the support for translating it in the vectorizer using the logic described in the Architecture Guide:

<block_expr1> or <block_expr2>

becomes

Let mask = <block_expr1> in
valueBlockLogicalOr(mask, applyMask(valueBlockLogicalNot(valueBlockFillEmpty(mask, False)), <block_expr2>))

Use the logic already present for Operations::And as a guide for the applyMask pseudo function



 Comments   
Comment by Githook User [ 16/Jan/24 ]

Author:

{'name': 'Projjal Chanda', 'email': 'projjal.chanda@mongodb.com', 'username': 'projjal'}

Message: SERVER-83007: Add support in vectorizer for translating Operations::Or BinaryOp ABT node (#18054)

GitOrigin-RevId: a0d39fef8c4f704fffd05ef0a1e6e10570adb770
Branch: master
https://github.com/mongodb/mongo/commit/6e8a5049565888426b1c8502663427f06587d7eb

Generated at Thu Feb 08 06:50:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.