From 03d632431469454aad404ab5e8a5e956e56b00b1 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Wed, 16 Oct 2024 11:10:37 -0700 Subject: [PATCH] Fix test --- rust/blockstore/src/arrow/block/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/blockstore/src/arrow/block/types.rs b/rust/blockstore/src/arrow/block/types.rs index 4c17566dd14..c18100d248f 100644 --- a/rust/blockstore/src/arrow/block/types.rs +++ b/rust/blockstore/src/arrow/block/types.rs @@ -161,7 +161,7 @@ impl Block { Less => None, Equal => Some(base), Greater => { - if prefix_array.value(base - 1) == prefix { + if base > 0 && prefix_array.value(base - 1) == prefix { Some(base - 1) } else { None