Skip to content
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

[ntuple] remove checksum field from anchor #15553

Merged
merged 4 commits into from
May 27, 2024

Conversation

silverweed
Copy link
Contributor

Checksum is now excluded from the on-disk representation and it's not
stored in the anchor. This allows to leverage the ROOT I/O machinery for
schema evolution rather than having to rely entirely on custom code in
RNTuple::Streamer().

The RNTuple class version gets bumped from 4 to 5.

This is a breaking change, but backwards compatibility with version 4
will be preserved for a while for easing the transition. Support for
version 4 will be dropped before stabilization.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

...instead of relying on ReadClassBuffer(). This is necessary for
schema evolution with RNTuple's custom streamer.
@silverweed silverweed requested a review from hahnjo May 17, 2024 10:03
@silverweed silverweed self-assigned this May 17, 2024
@silverweed silverweed requested a review from jblomer as a code owner May 17, 2024 10:03
Checksum is now excluded from the on-disk representation and it's not
stored in the anchor. This allows to leverage the ROOT I/O machinery for
schema evolution rather than having to rely entirely on custom code in
RNTuple::Streamer().

The RNTuple class version gets bumped from 4 to 5.

This is a breaking change, but backwards compatibility with version 4
will be preserved for a while for easing the transition. Support for
version 4 will be dropped before stabilization.
64 was missing the 2 bytes of the version
Copy link

github-actions bot commented May 17, 2024

Test Results

     9 files       9 suites   2d 4h 3m 21s ⏱️
 2 636 tests  2 634 ✅ 0 💤 2 ❌
22 602 runs  22 593 ✅ 0 💤 9 ❌

For more details on these failures, see this check.

Results for commit ddc93d0.

♻️ This comment has been updated with latest results.

@silverweed silverweed requested a review from pcanal May 17, 2024 15:22
@jblomer jblomer changed the title Remove checksum field from RNTuple anchor [ntuple] remove checksum field from anchor May 21, 2024
tree/ntuple/v7/src/RNTuple.cxx Outdated Show resolved Hide resolved
tree/ntuple/v7/src/RNTuple.cxx Show resolved Hide resolved
Copy link
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle looks good to me, only minor comments.

@silverweed silverweed merged commit 85ce550 into root-project:master May 27, 2024
2 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants