Skip to content

varbinview on device build skips validation#6358

Merged
onursatici merged 2 commits intodevelopfrom
os/vbv-device
Feb 9, 2026
Merged

varbinview on device build skips validation#6358
onursatici merged 2 commits intodevelopfrom
os/vbv-device

Conversation

@onursatici
Copy link
Contributor

No description provided.

@onursatici onursatici added the changelog/fix A bug fix label Feb 9, 2026
Signed-off-by: Onur Satici <onur@spiraldb.com>
Signed-off-by: Onur Satici <onur@spiraldb.com>
Comment on lines +168 to +171
vortex_ensure!(
views_nbytes.is_multiple_of(size_of::<BinaryView>()),
"Expected views buffer length ({views_nbytes}) to be a multiple of {}",
size_of::<BinaryView>()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Comment on lines +108 to +115
if buffers.iter().any(|b| b.is_on_device()) {
return VarBinViewArray::try_new_handle(
views_handle.clone(),
Arc::from(data_handles.to_vec()),
dtype.clone(),
validity,
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not always use this path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try_new does validation reading buffer contents

@onursatici onursatici merged commit aa3e5d6 into develop Feb 9, 2026
52 of 53 checks passed
@onursatici onursatici deleted the os/vbv-device branch February 9, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants