[SERVER-84233] Support BSON MinKey and MaxKey in BSONColumn Created: 15/Dec/23  Updated: 30/Jan/24  Resolved: 23/Jan/24

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

Type: Improvement Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-85404 Re-enable tests in time-series passth... Blocked
is depended on by SERVER-85323 BSONColumnBuilder support for BSON Mi... In Code Review
Related
related to SERVER-84234 BSONColumnBuilder throwing should be ... Open
related to SERVER-84170 Time-series bucket compression fails ... Closed
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0, v6.0
Sprint: Execution Team 2024-01-22, Execution Team 2024-02-05
Participants:

 Description   

BSON MinKey and MaxKey are the only unencodable types/values in the BSONColumn format.

If a user uses these special types when inserting data into a time-series collection we cannot use the compressed bucket format. This will prevent us from a future where we can rely on the compressed bucket format being used and the advantages that gives (guarantee for query that the data is sorted on time for example).

It also makes the insertion logic more complicated. If the BSONColumn compressor throws when inserting data, we'd need to differentiate between unsupported user input and corrupt BSONColumn binary.



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

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84233 Decompression support for BSONColumn storing BSON MinKey/MaxKey (#18110)

GitOrigin-RevId: 434dd94a94f766a67617d6ebcc9e393842267d06
Branch: v6.0
https://github.com/mongodb/mongo/commit/f5901bdd0e6d97f219c81b9a243b4cc9d3df9a5b

Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84233 Decompression support for BSONColumn storing BSON MinKey/MaxKey (#18110)

GitOrigin-RevId: c7dca7caea18fee6fe5672f0127b716e0362e740
Branch: v7.0
https://github.com/mongodb/mongo/commit/2861f2b394a688a7c94522cda0588c4138699b2f

Comment by Githook User [ 22/Jan/24 ]

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84233 Decompression support for BSONColumn storing BSON MinKey/MaxKey (#18110)

GitOrigin-RevId: ece6bedb937307194650c219d94b5709e89e8545
Branch: master
https://github.com/mongodb/mongo/commit/3620b073119c5e92e119f211aeb0497cca346106

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