Skip to content

[ntuple] allow passing opts to CreateAttributeSet, reuse otherwise#21918

Open
silverweed wants to merge 1 commit intoroot-project:masterfrom
silverweed:ntuple_attr_write_opts
Open

[ntuple] allow passing opts to CreateAttributeSet, reuse otherwise#21918
silverweed wants to merge 1 commit intoroot-project:masterfrom
silverweed:ntuple_attr_write_opts

Conversation

@silverweed
Copy link
Copy Markdown
Contributor

Currently CreateAttributeSet is just passing an empty WriteOptions struct to sink->CloneAsHidden().
This PR changes CloneAsHidden()'s signature to accept an optional instead of a const ref and, if nothing is passed, the "parent" sink's options are reused.

This means e.g. that by default CreateAttributeSet will preserve the same compression as the main RNTuple, which is what you would intuitively expect.

Checklist:

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

Currently CreateAttributeSet is just passing an empty WriteOptions
struct to sink->CloneAsHidden().
This PR changes CloneAsHidden()'s signature to accept an optional instead
of a const ref and, if nothing is passed, the "parent" sink's options
are reused.

This means e.g. that by default CreateAttributeSet will preserve the
same compression as the main RNTuple, which is what you would intuitively
expect.
@silverweed silverweed requested review from enirolf and hahnjo April 15, 2026 10:06
@silverweed silverweed self-assigned this Apr 15, 2026
@silverweed silverweed requested a review from jblomer as a code owner April 15, 2026 10:06
@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 5h 53m 35s ⏱️
 3 830 tests  3 829 ✅  1 💤 0 ❌
76 513 runs  76 495 ✅ 18 💤 0 ❌

Results for commit cc0eb48.

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.

1 participant