We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d38ad9 commit 1a497dbCopy full SHA for 1a497db
encodings/sparse/src/compute/search_sorted.rs
@@ -52,8 +52,9 @@ impl SearchSortedFn<&SparseArray> for SparseEncoding {
52
}
53
54
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.
57
fn fill_position(array: &SparseArray, side: SearchSortedSide) -> VortexResult<usize> {
- // In not found case we need to find the relative position of fill value to the patches
58
let fill_result = if array.fill_scalar().is_null() {
59
// For null fill the patches can only ever be after the fill
60
SearchResult::NotFound(array.patches().min_index()?)
0 commit comments