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
11 changes: 11 additions & 0 deletions vortex-compressor/src/compressor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use vortex_array::arrays::list::ListArrayExt;
use vortex_array::arrays::listview::ListViewArrayExt;
use vortex_array::arrays::listview::list_from_list_view;
use vortex_array::arrays::primitive::PrimitiveArrayExt;
use vortex_array::arrays::scalar_fn::AnyScalarFn;
use vortex_array::arrays::struct_::StructArrayExt;
use vortex_array::dtype::DType;
use vortex_array::dtype::Nullability;
Expand Down Expand Up @@ -254,6 +255,11 @@ impl CascadingCompressor {
return Ok(result);
}

// TODO(connor): HACK TO SUPPORT L2 DENORMALIZATION!!!
if result.is::<AnyScalarFn>() {
return Ok(result);
}

// Otherwise, fall back to compressing the underlying storage array.
let compressed_storage = self.compress(ext_array.storage_array())?;

Expand Down Expand Up @@ -337,6 +343,11 @@ impl CascadingCompressor {
// TODO(connor): Add a tracing warning here too.
return Ok(compressed);
}

// TODO(connor): HACK TO SUPPORT L2 DENORMALIZATION!!!
if compressed.is::<AnyScalarFn>() {
return Ok(compressed);
}
}

// No scheme improved on the original.
Expand Down
Loading