Skip to content

Commit 9de5577

Browse files
committed
Assertion for backfilling out of range
1 parent 989754c commit 9de5577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/arcticdb/pipeline/read_frame.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ class NullValueReducer {
767767
// Fills up all validity bitmaps with zeros from `column_block_idx_` until reaching `up_to_block_offset`.
768768
// If `up_to_block_offset` is `std::nullopt` then fills up until the end of the column.
769769
const auto& block_offsets = column_.block_offsets();
770+
util::check(!up_to_block_offset.has_value() || up_to_block_offset.value() <= block_offsets.back(), "up_to_block_offset outside of range");
770771
for (; column_block_idx_ < block_offsets.size() - 1; ++column_block_idx_) {
771772
if (up_to_block_offset.has_value() && block_offsets.at(column_block_idx_) >= up_to_block_offset.value()) {
772773
break;

0 commit comments

Comments
 (0)