Skip to content

Commit 5fc6745

Browse files
committed
remove unnecessary assert in ListViewBuilder
Signed-off-by: Andrew Duffy <[email protected]>
1 parent 8b8cb1c commit 5fc6745

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

vortex-array/src/builders/listview.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ impl<O: IntegerPType, S: IntegerPType> ListViewBuilder<O, S> {
7777
elements_capacity: usize,
7878
capacity: usize,
7979
) -> Self {
80-
// Validate that size type's maximum value fits within offset type's maximum value.
81-
// Since offsets are non-negative, we only need to check max values.
82-
assert!(
83-
S::max_value_as_u64() <= O::max_value_as_u64(),
84-
"Size type {:?} (max offset {}) must fit within offset type {:?} (max offset {})",
85-
S::PTYPE,
86-
S::max_value_as_u64(),
87-
O::PTYPE,
88-
O::max_value_as_u64()
89-
);
90-
9180
let elements_builder = builder_with_capacity(&element_dtype, elements_capacity);
9281

9382
let offsets_builder =

0 commit comments

Comments
 (0)