Skip to content

[DF] Support filename globs for RNTuple inputs - #24295

Open
jmcarcell wants to merge 4 commits into
root-project:masterfrom
jmcarcell:rdf-rntuple-filename-globs
Open

jmcarcell wants to merge 4 commits into
root-project:masterfrom
jmcarcell:rdf-rntuple-filename-globs

Conversation

@jmcarcell

@jmcarcell jmcarcell commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

ROOT::RDataFrame("ntuple", "input_*.root") detects the RNTuple from the first match, but then tries to open the pattern as a literal filename:

Cannot open 'input_*.root', error: No such file or directory

Expand filename globs for RNTuple inputs in both RDataFrame and ROOT::RDF::FromRNTuple. Add regression tests for single globs, lists mixing globs and explicit filenames, and unmatched patterns.
Glob support in ROOT::RDF::FromRNTuple is not required to fix the RDataFrame constructor, but expanding globs in the shared RNTuple data source keeps both entry points consistent, much like TChain::Add() provides glob support below RDataFrame for TTree inputs.
For TTree inputs, a glob that matches no files now throws std::invalid_argument when constructing the RDataFrame (including when the glob appears later in a list) or an RDatasetSpec sample, rather than silently adding no files via TChain::Add(). For both TTree and RNTuple inputs, the exception and diagnostic are the same whether the directory does not exist or it exists but contains no matches.

Checklist:

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

This branch has not been deployed

No deployments
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.

1 participant