Skip to content

Commit 31a77ed

Browse files
committed
comment
1 parent 0240ef8 commit 31a77ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

encodings/sparse/src/compute/search_sorted.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ impl SearchSortedFn<&SparseArray> for SparseEncoding {
5252
}
5353
}
5454

55+
// Find the fill position relative to patches, in case of fill being in between patches we want to find the right most
56+
// index of the fill relative to patches.
5557
fn fill_position(array: &SparseArray, side: SearchSortedSide) -> VortexResult<usize> {
56-
// In not found case we need to find the relative position of fill value to the patches
5758
let fill_result = if array.fill_scalar().is_null() {
5859
// For null fill the patches can only ever be after the fill
5960
SearchResult::NotFound(array.patches().min_index()?)

0 commit comments

Comments
 (0)