Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Mar 20, 2024
1 parent 74fe623 commit 047b343
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vortex-array/src/array/varbinview/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::compute::as_arrow::AsArrowArray;
use crate::compute::flatten::{flatten, flatten_primitive, FlattenFn, FlattenedArray};
use crate::compute::scalar_at::ScalarAtFn;
use crate::compute::ArrayCompute;
use crate::error::VortexResult;
use crate::error::{VortexError, VortexResult};
use crate::ptype::PType;
use crate::scalar::Scalar;

Expand Down
4 changes: 4 additions & 0 deletions vortex-array/src/ptype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ impl From<PType> for &DType {
PType::I16 => &Int(IntWidth::_16, Signed, NonNullable),
PType::I32 => &Int(IntWidth::_32, Signed, NonNullable),
PType::I64 => &Int(IntWidth::_64, Signed, NonNullable),
PType::I128 => &Int(IntWidth::_128, Signed, NonNullable),
PType::U8 => &Int(IntWidth::_8, Unsigned, NonNullable),
PType::U16 => &Int(IntWidth::_16, Unsigned, NonNullable),
PType::U32 => &Int(IntWidth::_32, Unsigned, NonNullable),
PType::U64 => &Int(IntWidth::_64, Unsigned, NonNullable),
PType::U128 => &Int(IntWidth::_128, Unsigned, NonNullable),
PType::F16 => &Float(FloatWidth::_16, NonNullable),
PType::F32 => &Float(FloatWidth::_32, NonNullable),
PType::F64 => &Float(FloatWidth::_64, NonNullable),
Expand All @@ -245,10 +247,12 @@ impl From<PType> for DType {
PType::I16 => Int(IntWidth::_16, Signed, NonNullable),
PType::I32 => Int(IntWidth::_32, Signed, NonNullable),
PType::I64 => Int(IntWidth::_64, Signed, NonNullable),
PType::I128 => Int(IntWidth::_128, Signed, NonNullable),
PType::U8 => Int(IntWidth::_8, Unsigned, NonNullable),
PType::U16 => Int(IntWidth::_16, Unsigned, NonNullable),
PType::U32 => Int(IntWidth::_32, Unsigned, NonNullable),
PType::U64 => Int(IntWidth::_64, Unsigned, NonNullable),
PType::U128 => Int(IntWidth::_128, Unsigned, NonNullable),
PType::F16 => Float(FloatWidth::_16, NonNullable),
PType::F32 => Float(FloatWidth::_32, NonNullable),
PType::F64 => Float(FloatWidth::_64, NonNullable),
Expand Down

0 comments on commit 047b343

Please sign in to comment.