Skip to content

Commit

Permalink
[ntuple] merger: add some extra verbose messages
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Nov 19, 2024
1 parent 3331f89 commit 2c958bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tree/ntuple/v7/src/RNTupleMerger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,16 @@ static void AddColumnsFromField(std::vector<RColumnMergeInfo> &columns, const RN
info.fColumnType = dstColumn.GetType();
mergeData.fColumnIdMap[info.fColumnName] = {info.fOutputId, info.fColumnType};
}

if (mergeData.fMergeOpts.fExtraVerbose) {
Info("RNTuple::Merge",
"Adding column %s with log.id %" PRIu64 ", phys.id %" PRIu64 ", type %s "
" -> log.id %" PRIu64 ", type %s",
info.fColumnName.c_str(), srcColumnId, srcColumn.GetPhysicalId(),
RColumnElementBase::GetColumnTypeName(srcColumn.GetType()), info.fOutputId,
RColumnElementBase::GetColumnTypeName(info.fColumnType));
}

// Since we disallow merging fields of different types, src and dstFieldDesc must have the same type name.
assert(srcFieldDesc.GetTypeName() == dstFieldDesc.GetTypeName());
info.fInMemoryType = ColumnInMemoryType(srcFieldDesc.GetTypeName(), info.fColumnType);
Expand Down

0 comments on commit 2c958bb

Please sign in to comment.