Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vortex-array/src/arrays/varbin/compute/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ impl SliceReduce for VarBinVTable {
impl VarBinVTable {
pub fn _slice(array: &VarBinArray, range: Range<usize>) -> VortexResult<ArrayRef> {
Ok(unsafe {
VarBinArray::new_unchecked(
VarBinArray::new_unchecked_from_handle(
array.offsets().slice(range.start..range.end + 1)?,
array.bytes().clone(),
array.bytes_handle().clone(),
array.dtype().clone(),
array.validity()?.slice(range)?,
)
Expand Down
4 changes: 2 additions & 2 deletions vortex-array/src/arrays/varbin/vtable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ impl VTable for VarBinVTable {
if buffers.len() != 1 {
vortex_bail!("Expected 1 buffer, got {}", buffers.len());
}
let bytes = buffers[0].clone().try_to_host_sync()?;
let bytes = buffers[0].clone();

VarBinArray::try_new(offsets, bytes, dtype.clone(), validity)
VarBinArray::try_new_from_handle(offsets, bytes, dtype.clone(), validity)
}

fn with_children(array: &mut Self::Array, children: Vec<ArrayRef>) -> VortexResult<()> {
Expand Down
Loading