Skip to content

Commit

Permalink
Use ForEachArrayData in FillArrays
Browse files Browse the repository at this point in the history
  • Loading branch information
igormunkin committed Aug 28, 2024
1 parent 64b6652 commit a863229
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ydb/library/yql/minikql/computation/mkql_block_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,9 @@ void TBlockState::FillArrays() {
return;
}
MKQL_ENSURE(datum.is_arraylike(), "Unexpected block type (expecting array or chunked array)");
if (datum.is_array()) {
Deques[i].push_back(datum.array());
} else {
for (auto& chunk : datum.chunks()) {
Deques[i].push_back(chunk->data());
}
}
ForEachArrayData(datum, [this, i](const auto& arrayData) {
Deques[i].push_back(arrayData);
});
}
}
}
Expand Down

0 comments on commit a863229

Please sign in to comment.