Skip to content

Commit b79fe28

Browse files
committed
Revert "use compute fn is_sorted"
This reverts commit 42317d6. Signed-off-by: Robert Kruszewski <[email protected]>
1 parent 42317d6 commit b79fe28

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • vortex-array/src/arrays/varbin

‎vortex-array/src/arrays/varbin/mod.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::validity::Validity;
1818
use crate::vtable::{
1919
ArrayVTable, NotSupported, VTable, ValidityHelper, ValidityVTableFromValidityHelper,
2020
};
21-
use crate::{Array, ArrayRef, EncodingId, EncodingRef, compute as compute_fn, vtable};
21+
use crate::{Array, ArrayRef, EncodingId, EncodingRef, vtable};
2222

2323
mod accessor;
2424
pub mod builder;
@@ -173,7 +173,9 @@ impl VarBinArray {
173173
);
174174

175175
// Check offsets are sorted
176-
vortex_ensure!(!compute_fn::is_sorted(offsets)?, "offsets must be sorted");
176+
if let Some(is_sorted) = offsets.statistics().compute_is_sorted() {
177+
vortex_ensure!(is_sorted, "offsets must be sorted");
178+
}
177179

178180
// Check first offset is 0 and last offset doesn't exceed bytes length
179181
let first_offset = offsets

0 commit comments

Comments
 (0)