Skip to content
Merged
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
6 changes: 5 additions & 1 deletion vortex-btrblocks/src/schemes/binary/varbin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ impl Scheme for VarBinScheme {
// borrowed slices into a single pre-sized allocation. Iterating the array per element
// instead would clone a buffer handle and allocate for every value.
let array = data.array();
let mut builder = VarBinBuilder::<u64>::with_capacity(array.dtype().clone(), array.len());
let mut builder = VarBinBuilder::<u64>::with_capacity_in(
array.dtype().clone(),
array.len(),
exec_ctx.allocator(),
);
array.append_to_builder(&mut builder, exec_ctx)?;
let varbin = builder.finish_into_varbin();

Expand Down
Loading