Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Framework/Core/src/AODReaderHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ struct Spawnable {

Maker createMaker()
{
o2::framework::addLabelToSchema(outputSchema, binding.c_str());
return {
binding,
labels,
Expand Down
7 changes: 3 additions & 4 deletions Framework/Core/src/TableBuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,18 @@ std::shared_ptr<arrow::Table> spawnerHelper(std::shared_ptr<arrow::Table> const&
while (true) {
auto s = reader.ReadNext(&batch);
if (!s.ok()) {
throw runtime_error_f("Cannot read batches from source table to spawn %s: %s", name, s.ToString().c_str());
throw runtime_error_f("Cannot read batches from the source table to spawn %s: %s", name, s.ToString().c_str());
}
if (batch == nullptr) {
break;
}
try {
s = projector->Evaluate(*batch, arrow::default_memory_pool(), &v);
if (!s.ok()) {
throw runtime_error_f("Cannot apply projector to source table of %s: %s", name, s.ToString().c_str());
throw runtime_error_f("Cannot apply projector to the source table of %s: %s", name, s.ToString().c_str());
}
} catch (std::exception& e) {
throw runtime_error_f("Cannot apply projector to source table of %s: exception caught: %s", name, e.what());
throw runtime_error_f("Cannot apply projector to the source table of %s: exception caught: %s", name, e.what());
}

for (auto i = 0U; i < nColumns; ++i) {
Expand All @@ -168,7 +168,6 @@ std::shared_ptr<arrow::Table> spawnerHelper(std::shared_ptr<arrow::Table> const&
arrays.push_back(std::make_shared<arrow::ChunkedArray>(chunks[i]));
}

addLabelToSchema(newSchema, name);
return arrow::Table::Make(newSchema, arrays);
}

Expand Down