Skip to content

Commit 4a12299

Browse files
committed
fixup! update serialization
1 parent 63b7f38 commit 4a12299

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Framework/Core/include/Framework/AnalysisHelpers.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <string>
2929
namespace o2::framework {
3030
std::string serializeProjectors(std::vector<framework::expressions::Projector>& projectors);
31+
std::string serializeSchema(std::shared_ptr<arrow::Schema>& schema);
3132
}
3233

3334
namespace o2::soa
@@ -113,8 +114,11 @@ constexpr auto getExpressionMetadata() -> std::vector<framework::ConfigParamSpec
113114
return result;
114115
}(expression_pack_t{});
115116

117+
auto schema = std::make_shared<arrow::Schema>(o2::soa::createFieldsFromColumns(expression_pack_t{}));
118+
116119
auto json = framework::serializeProjectors(projectors);
117-
return {framework::ConfigParamSpec{"projectors", framework::VariantType::String, json, {"\"\""}}};
120+
return {framework::ConfigParamSpec{"projectors", framework::VariantType::String, json, {"\"\""}},
121+
framework::ConfigParamSpec{"schema", framework::VariantType::String, framework::serializeSchema(schema), {"\"\""}}};
118122
}
119123

120124
template <typename T>

Framework/Core/src/AnalysisHelpers.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
#include "Framework/ExpressionHelpers.h"
12-
#include "Framework/ExpressionJSONHelpers.h"
12+
#include "ExpressionJSONHelpers.h"
1313

1414
namespace o2::framework
1515
{

0 commit comments

Comments
 (0)