Skip to content

[df] Refresh input TTree when changing spec #18412

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

Merged

Conversation

vepadulano
Copy link
Member

In-between distributed tasks the input data source of the RDataFrame is changed (via RLoopManager::ChangeSpec), thus invalidating the input TTree from the previous task. Ensure the Snapshot action helper is always aware of the latest, currently valid TTree by retrieving it from the input RLoopManager directly.

This fixes the failures in the graph caching test. The test was also extended to check that the output snapshot from the distributed tasks also contains the right data as it was read from the input TTree.

In-between distributed tasks the input data source of the RDataFrame is
changed (via RLoopManager::ChangeSpec), thus invalidating the input
TTree from the previous task. Ensure the Snapshot action helper is
always aware of the latest, currently valid TTree by retrieving it from
the input RLoopManager directly.

This fixes the failures in the graph caching test. The test was also
extended to check that the output snapshot from the distributed tasks
also contains the right data as it was read from the input TTree.
@vepadulano vepadulano force-pushed the rdf-refresh-tree-after-change-spec branch from 3a9a358 to f42933d Compare April 15, 2025 09:19
@vepadulano vepadulano modified the milestones: 6.34.06, 6.36.00 Apr 15, 2025
Copy link

github-actions bot commented Apr 15, 2025

Test Results

    17 files      17 suites   4d 10h 30m 22s ⏱️
 2 738 tests  2 736 ✅ 0 💤 2 ❌
44 943 runs  44 941 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 7fe4188.

♻️ This comment has been updated with latest results.

Since TTree is handled via RDataSource now, we can directly access the
data source object in cling::printValue(ROOT::RDataFrame *).
@dpiparo dpiparo merged commit bbea6ce into root-project:master Apr 15, 2025
19 of 24 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.

2 participants