-
Notifications
You must be signed in to change notification settings - Fork 153
Improve StageResult printout
#2760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
IvoDD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can you include an example in the PR description of the new format of the stage result, so that it is visible from the release notes?
cpp/arcticdb/entity/stage_result.hpp
Outdated
| auto transform_view = | ||
| stage_result.staged_segments | std::views::transform([](const auto& key) { | ||
| return arcticdb::entity:: | ||
| formattable<arcticdb::entity::AtomKey, arcticdb::entity::DisplayAtomKeyFormat>(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can we use key.view_human() here?
Reference Issues/PRs
What does this implement or fix?
Improve the readability of
StageResultalong with atom keys' printoutNew
StageResultprintout example:StageResult(staged_segments=[Key(type=b, id='sym', version_id=0, content_hash=0xac454fbcb62cd989, creation_ts=1763562571272342532, start_index=1735689600000000000, end_index=1735776000000000001), Key(type=b, id='sym', version_id=0, content_hash=0x14e310dcc399815e, creation_ts=1763562571272634201, start_index=1735862400000000000, end_index=1735862400000000001)])New key printout example:
Key(type=b, id='sym', version_id=0, content_hash=0xac454fbcb62cd989, creation_ts=1763562571272342532, start_index=1735689600000000000, end_index=1735776000000000001)Docstring for the class has been added to the docs website as well.
Any other comments?
Checklist
Checklist for code changes...