Skip to content

Commit

Permalink
less
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Jun 24, 2024
1 parent f45f599 commit 093be5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encodings/fastlanes/src/for/compress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use vortex::compress::{CompressConfig, Compressor, EncodingCompression};
use vortex::stats::{ArrayStatistics, Stat};
use vortex::validity::ArrayValidity;
use vortex::{Array, ArrayDType, ArrayTrait, IntoArray};
use vortex_dtype::{match_each_integer_ptype, DType, NativePType, PType};
use vortex_dtype::{match_each_integer_ptype, NativePType};
use vortex_error::{vortex_err, VortexResult};
use vortex_scalar::Scalar;

Expand Down Expand Up @@ -109,7 +109,7 @@ fn compress_primitive<T: NativePType + WrappingSub + PrimInt>(

pub fn decompress(array: FoRArray) -> VortexResult<PrimitiveArray> {
let shift = array.shift();
let ptype: PType = array.dtype().try_into()?;
let ptype = array.ptype();
let encoded = array.encoded().flatten_primitive()?.reinterpret_cast(ptype);
Ok(match_each_integer_ptype!(ptype, |$T| {
let reference: $T = array.reference().try_into()?;
Expand Down

0 comments on commit 093be5e

Please sign in to comment.