Skip to content

Commit

Permalink
fix reader should starts with prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
eldenmoon committed Dec 26, 2024
1 parent 5f9eae7 commit fa2ff27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion be/src/olap/rowset/segment_v2/column_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ Status VariantColumnReader::new_iterator(ColumnIterator** iterator,
bool prefix_existed_in_sparse_column =
_statistics &&
(_statistics->sparse_column_non_null_size.lower_bound(relative_path.get_path()) !=
_statistics->sparse_column_non_null_size.end());
_statistics->sparse_column_non_null_size.end()) &&
_statistics->sparse_column_non_null_size.lower_bound(relative_path.get_path())
->first.starts_with(relative_path.get_path());

// Otherwise the prefix is not exist and the sparse column size is reached limit
// which means the path maybe exist in sparse_column
bool exceeded_sparse_column_limit =
Expand Down

0 comments on commit fa2ff27

Please sign in to comment.