[fix](merge-iterator) fix NOT_IMPLEMENTED_ERROR when read next block view (#32961)

This commit is contained in:
Xin Liao
2024-03-28 17:28:49 +08:00
committed by yiguolei
parent dcddd88e01
commit f1ee7f5767

View File

@ -422,9 +422,9 @@ Status VUnionIterator::current_block_row_locations(std::vector<RowLocation>* loc
RowwiseIteratorUPtr new_merge_iterator(std::vector<RowwiseIteratorUPtr>&& inputs,
int sequence_id_idx, bool is_unique, bool is_reverse,
uint64_t* merged_rows) {
if (inputs.size() == 1) {
return std::move(inputs[0]);
}
// when the size of inputs is 1, we also need to use VMergeIterator, because the
// next_block_view function only be implemented in VMergeIterator. The reason why
// the size of inputs is 1 is that the segment was filtered out by zone map or others.
return std::make_unique<VMergeIterator>(std::move(inputs), sequence_id_idx, is_unique,
is_reverse, merged_rows);
}