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
3 changes: 3 additions & 0 deletions fuzz/src/array/scalar_at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ use vortex_scalar::{DecimalValue, Scalar, match_each_decimal_value_type};
/// This implementation manually extracts the scalar value from each canonical type
/// without using the scalar_at method, to serve as an independent baseline for testing.
pub fn scalar_at_canonical_array(canonical: Canonical, index: usize) -> VortexResult<Scalar> {
if canonical.as_ref().is_invalid(index) {
return Ok(Scalar::null(canonical.as_ref().dtype().clone()));
}
Ok(match canonical {
Canonical::Null(_array) => Scalar::null(DType::Null),
Canonical::Bool(array) => {
Expand Down
Loading