Skip to content

Commit f8c74d8

Browse files
committed
DPL Analysis: protect aod-spawner from empty input
1 parent 7c1375a commit f8c74d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Framework/Core/src/AODReaderHelpers.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ struct Maker {
156156
originals.push_back(pc.inputs().get<TableConsumer>(label)->asArrowTable());
157157
}
158158
auto fullTable = soa::ArrowHelpers::joinTables(std::move(originals), std::span{labels.begin(), labels.size()});
159+
if (fullTable->num_rows() == 0) {
160+
return arrow::Table::MakeEmpty(schema).ValueOrDie();
161+
}
159162
if (projector == nullptr) {
160163
auto s = gandiva::Projector::Make(
161164
fullTable->schema(),

0 commit comments

Comments
 (0)