[SERVER-64417] Lossless printing of SBE values, rows and stage results Created: 10/Mar/22  Updated: 29/Oct/23  Resolved: 22/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Anna Wawrzyniak Assignee: Anna Wawrzyniak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QE 2022-04-04, QE 2022-03-21
Participants:

 Description   

Problem:

Stream writers for SBE values truncate large arrays, and also omit types for certain primitive values (like numericals).

We would like to use printing of the values for testing and not lose any significant information when printing to stream.

There does not appear a utility allowing to print stage execution results.

Proposed solution:

Add PrintOptions that control:

  • max depth or array size
  • whether to print data types for numeric types and also date (that otherwise is printed as int64). We should also consider making this option true by default or always true,

 Add utility for printing stage execution results.



 Comments   
Comment by Githook User [ 17/Mar/22 ]

Author:

{'name': 'Anna Wawrzyniak', 'email': 'anna.wawrzyniak@mongodb.com', 'username': 'anna-wawrzyniak'}

Message: SERVER-64417 Add configurable printers for SBE
Branch: master
https://github.com/mongodb/mongo/commit/3a2231e309e77cb0d9c1d2bd0aa380e35ec6d32a

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