Skip to content

Commit 6cccae3

Browse files
committed
comment
1 parent 1a497db commit 6cccae3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

encodings/sparse/src/compute/search_sorted.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ fn fill_position(array: &SparseArray, side: SearchSortedSide) -> VortexResult<us
7373
array.len()
7474
} else {
7575
// [patch, fill, ..., fill, patch]
76-
// When searching from right we need to find the right most occurrence of our fill value. If fill value
77-
// is present in patches this would be the index of the next value after the fill value
76+
// If fill value is present in patches this would be the index of the next value after the fill value
7877
let fill_index = array.patches().search_index(fill_result_index)?.to_index();
7978
if fill_index < array.patches().num_patches() {
8079
let next_index = usize::try_from(&scalar_at(array.patches().indices(), fill_index)?)?;
81-
// fill value is dense with a next patch value we want to return the original fill_index,
80+
// fill value search result is dense with a next patch value we want to return the original fill_index,
8281
// i.e. the fill value cannot exist between fill_index and next_index
8382
if fill_index + 1 == next_index {
8483
fill_index

0 commit comments

Comments
 (0)