Skip to content

Commit 155dcdb

Browse files
committed
[RDF] Don't search for input branches when snapshotting Redefine.
When columns got redefined, snapshot was trying to still find input columns for the outputs. That should not be the case since none of the properties of the input branch need to be transferred.
1 parent b9a777f commit 155dcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree/dataframe/src/RDFSnapshotHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ void SetBranchesHelper(TTree *inputTree, TTree &outputTree, ROOT::Internal::RDF:
244244
void *&actionHelperBranchPtrAddress, bool isDefine)
245245
{
246246

247-
auto *inputBranch = SearchForBranch(inputTree, inputBranchName);
247+
auto *inputBranch = isDefine ? nullptr : SearchForBranch(inputTree, inputBranchName);
248248

249249
// Respect the original bufsize and splitlevel arguments
250250
// In particular, by keeping splitlevel equal to 0 if this was the case for `inputBranch`, we avoid

0 commit comments

Comments
 (0)