Skip to content

[df] Support std::array data members in TTree schemas#21278

Merged
dpiparo merged 1 commit intoroot-project:masterfrom
vepadulano:rdf-vector-class-array-data-member
Apr 21, 2026
Merged

[df] Support std::array data members in TTree schemas#21278
dpiparo merged 1 commit intoroot-project:masterfrom
vepadulano:rdf-vector-class-array-data-member

Conversation

@vepadulano
Copy link
Copy Markdown
Member

@vepadulano vepadulano commented Feb 13, 2026

Fixes #14790

Include tests that both check the fixed behaviour and document limitations and currently unsupported schemas or operations on them that are closely related to the one described above.

Note that this PR shows the testing infrastructure for the equivalent RNTuple schemas, but provides no support for it. After internal discussion, it has become evident that the RNTuple data source would need more work for support of partial reading of class data members with types different than the on-disk one.

Note for posterity

Another approach could have been to standardise in which way RDF can read collection types such as the ones addressed in this PR. This was proposed and discussed at PPP194 https://indico.cern.ch/event/1660527/ . After discussion, the proposal was rejected. Find more details in the minutes attached to the agenda.

@vepadulano vepadulano self-assigned this Feb 13, 2026
@vepadulano vepadulano force-pushed the rdf-vector-class-array-data-member branch from 18f049f to 58db28a Compare February 13, 2026 19:55
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 13, 2026

Test Results

    22 files      22 suites   3d 11h 43m 39s ⏱️
 3 838 tests  3 837 ✅  1 💤 0 ❌
76 680 runs  76 662 ✅ 18 💤 0 ❌

Results for commit 6b0673c.

♻️ This comment has been updated with latest results.

@vepadulano vepadulano force-pushed the rdf-vector-class-array-data-member branch 2 times, most recently from 8cd1734 to f4dc20c Compare February 23, 2026 13:22
@vepadulano vepadulano marked this pull request as ready for review February 24, 2026 10:43
@vepadulano
Copy link
Copy Markdown
Member Author

Marking the PR ready for review as all the wanted changes are there. There is a leftover failure on Windows related to an issue with CMake that has been understood and will be dealt with in a separate PR (that will become a requirement for this one).

Comment thread tree/dataframe/inc/ROOT/RDF/RTreeColumnReader.hxx
Comment thread tree/dataframe/src/RDFUtils.cxx Outdated
Comment thread tree/treeplayer/inc/TTreeReaderArray.h
Comment thread tree/treeplayer/src/TTreeReaderArray.cxx Outdated
Fixes root-project#14790

Include tests that both check the fixed behaviour and document limitations and
currently unsupported schemas or operations on them that are closely related to
the one described above.

Reading of the same TTree schema with RNTuple is currently not supported within
this context.
@vepadulano vepadulano added the clean build Ask CI to do non-incremental build on PR label Apr 21, 2026
@vepadulano vepadulano force-pushed the rdf-vector-class-array-data-member branch from 1595432 to 6b0673c Compare April 21, 2026 14:50
@vepadulano vepadulano added this to the 6.40.00 milestone Apr 21, 2026
@vepadulano
Copy link
Copy Markdown
Member Author

@dpiparo I would like to propose for this bugfix to be included in 6.40

Copy link
Copy Markdown
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@dpiparo dpiparo modified the milestones: 6.40.00, 6.40.00-rc1 Apr 21, 2026
@dpiparo
Copy link
Copy Markdown
Member

dpiparo commented Apr 21, 2026

moved to rc1

@dpiparo dpiparo merged commit 257e7cf into root-project:master Apr 21, 2026
30 checks passed
@dpiparo dpiparo removed in:TTree clean build Ask CI to do non-incremental build on PR labels Apr 21, 2026
@dpiparo
Copy link
Copy Markdown
Member

dpiparo commented Apr 21, 2026

/backport to 6.36, 6.38

@root-project-bot
Copy link
Copy Markdown

Something went wrong with the backport to 6.36: @dpiparo please see the logs

@dpiparo
Copy link
Copy Markdown
Member

dpiparo commented Apr 21, 2026

/backport to 6.38

@root-project-bot
Copy link
Copy Markdown

This PR has been backported to branch 6.38: #22007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DF] 1D std::array "has both a leaf count and a static length"

4 participants