From da47d83bbd824cab1e44c46f330df5a6e4b224e7 Mon Sep 17 00:00:00 2001 From: Anton Alkin Date: Wed, 19 Nov 2025 18:32:52 +0100 Subject: [PATCH] DPL Analysis: add label to the spawned table metadata --- Framework/Core/src/AODReaderHelpers.cxx | 1 + Framework/Core/src/TableBuilder.cxx | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Framework/Core/src/AODReaderHelpers.cxx b/Framework/Core/src/AODReaderHelpers.cxx index 0c556920d3fcb..09ec16a93b087 100644 --- a/Framework/Core/src/AODReaderHelpers.cxx +++ b/Framework/Core/src/AODReaderHelpers.cxx @@ -240,6 +240,7 @@ struct Spawnable { Maker createMaker() { + o2::framework::addLabelToSchema(outputSchema, binding.c_str()); return { binding, labels, diff --git a/Framework/Core/src/TableBuilder.cxx b/Framework/Core/src/TableBuilder.cxx index 7e256fb9f1712..c80fef9f0533c 100644 --- a/Framework/Core/src/TableBuilder.cxx +++ b/Framework/Core/src/TableBuilder.cxx @@ -144,7 +144,7 @@ std::shared_ptr spawnerHelper(std::shared_ptr 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; @@ -152,10 +152,10 @@ std::shared_ptr spawnerHelper(std::shared_ptr const& 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) { @@ -168,7 +168,6 @@ std::shared_ptr spawnerHelper(std::shared_ptr const& arrays.push_back(std::make_shared(chunks[i])); } - addLabelToSchema(newSchema, name); return arrow::Table::Make(newSchema, arrays); }