[SERVER-25823] Add bitwise AND, OR, XOR to aggregation pipeline Created: 26/Aug/16 Updated: 11/May/23 Resolved: 06/Dec/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Adinoyi Omuya | Assignee: | Davis Haupt (Inactive) |
| Resolution: | Done | Votes: | 10 |
| Labels: | BIC, bitwise, expression, query | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | QO 2022-12-12 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
We already have support for bitwise operators - and, or, xor, complement - in both the query and update paths. It would be nice to have this in aggregation as well. This would allow users run pipelines like:
|
| Comments |
| Comment by Githook User [ 05/Dec/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Githook User [ 05/Dec/22 ] |
|
Author: {'name': 'Davis Haupt', 'email': 'davis.haupt@mongodb.com', 'username': 'davish'}Message: |
| Comment by Davis Haupt (Inactive) [ 17/Nov/22 ] |
|
Changed the title of this ticket to reflect the work to add AND, OR, and XOR to the agg language. Work for bitwise NOT will be completed in |
| Comment by Davis Haupt (Inactive) [ 17/May/22 ] |
|
Moving this ticket to be blocked on the syntax review. |
| Comment by Davis Haupt (Inactive) [ 05/May/22 ] |
|
This PR, unlike the previous PR, only implements bitwise and, or, and xor to reach feature parity with update and match. Other operations, like bitshifting, have not been implemented since they're not yet present in any part of the database. We can file a new ticket if that functionality is still desired. |
| Comment by Davis Haupt (Inactive) [ 05/May/22 ] |
|
Syntax and semantics for the most recent PR:
|
| Comment by Patrick Meredith [ 27/Oct/18 ] |
|
Code Review: https://mongodbcr.appspot.com/226050001/ |