Skip to content

Commit 7f6ab4a

Browse files
aalkinktf
authored andcommitted
DPL Analysis: protect aod-spawner from empty input
1 parent bef1aef commit 7f6ab4a

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)