Skip to content

Commit

Permalink
build: fix darwin build (#9577) (#9580)
Browse files Browse the repository at this point in the history
close #9581

Signed-off-by: Lloyd-Pottiger <[email protected]>

Co-authored-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
ti-chi-bot and Lloyd-Pottiger authored Nov 7, 2024
1 parent 5dd3a73 commit cf10b55
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ Block ColumnFileSetWithVectorIndexInputStream::readImpl(FilterPtr & res_filter)
// read vector type column by vector index
auto tiny_reader = tiny_readers[current_file_index];
auto vec_column = vec_cd.type->createColumn();
const std::span file_selected_rows{selected_row_begin, selected_row_end};
const std::span<const VectorIndexViewer::SearchResult> file_selected_rows{
&*selected_row_begin,
static_cast<size_t>(std::distance(selected_row_begin, selected_row_end))};
tiny_reader->read(vec_column, file_selected_rows, /* rowid_start_offset= */ read_rows, file_rows);
assert(vec_column->size() == file_rows);

Expand Down

0 comments on commit cf10b55

Please sign in to comment.