[SERVER-65501] BSONColumnBuilder stores objects as scalars when field was previously encountered as scalar Created: 12/Apr/22 Updated: 29/Oct/23 Resolved: 26/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Task | 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: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Backport Requested: |
v6.0
|
||||
| Sprint: | Execution Team 2022-05-02 | ||||
| Participants: | |||||
| Description |
|
Storing the following values in BSONColumn opens object compression with a single interleaved stream for "x":
The {"y": 2, "z": 3} in the third and forth object are stored as uncompressed scalars in that single interleaved stream. However, if the ordering of appends were reversed:
We would start with object compression with two streams and end it when the third object is encountered and restart object compression with a single stream for "x" as a scalar. The behavior should be the same regardless of order. When going from scalar to object we should also re-start object compression. |
| Comments |
| Comment by Githook User [ 27/Apr/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: This makes the behavior the same as when going from object to scalar. (cherry picked from commit 8566a0723be819ade9a79b5c5c4d60590e4a895e) |
| Comment by Githook User [ 22/Apr/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: This makes the behavior the same as when going from object to scalar. |
| Comment by Githook User [ 20/Apr/22 ] |
|
Author: {'name': 'Uladzimir Makouski', 'email': 'uladzimir.makouski@mongodb.com', 'username': 'umakouski'}Message: Revert " This reverts commit 31864e3866ce9cc54c08463019846ded2ad9e6e5. |
| Comment by Githook User [ 19/Apr/22 ] |
|
Author: {'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}Message: This makes the behavior the same as when going from object to scalar. |