Skip to content

Commit 39fd2cd

Browse files
committed
DPL Analysis: bind grouping table to grouped ones
1 parent 217b3a5 commit 39fd2cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Framework/Core/include/Framework/AnalysisTask.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,11 @@ struct AnalysisDataProcessorBuilder {
405405
} else if constexpr (is_specialization<std::decay_t<AssociatedType>, o2::soa::Join>::value || is_specialization<std::decay_t<AssociatedType>, o2::soa::Concat>::value) {
406406
for (auto& groupedDatum : groupsCollection) {
407407
auto groupedElementsTable = arrow::util::get<std::shared_ptr<arrow::Table>>(groupedDatum.value);
408-
task.process(groupingElement, AssociatedType{{groupedElementsTable}, offsets[oi]});
408+
// Set the refererred table.
409+
// FIXME: we should be able to do this upfront for all the tables.
410+
std::decay_t<AssociatedType> typedTable{{groupedElementsTable}, offsets[oi]};
411+
typedTable.bindExternalIndices(&groupingTable);
412+
task.process(groupingElement, typedTable);
409413
++const_cast<std::decay_t<Grouping>&>(groupingElement);
410414
++oi;
411415
}

0 commit comments

Comments
 (0)