We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8efe1dc commit eeaea6dCopy full SHA for eeaea6d
1 file changed
vortex-btrblocks/src/compressor/integer/mod.rs
@@ -713,11 +713,16 @@ impl Scheme for DictScheme {
713
ctx.descend(),
714
Excludes::int_only(&new_excludes),
715
)?;
716
+ let compressed_values = compressor.compress_canonical(
717
+ Canonical::Primitive(dict.values().to_primitive().narrow()?),
718
+ ctx.descend(),
719
+ Excludes::int_only(&new_excludes),
720
+ )?;
721
- // SAFETY: compressing codes does not change their values
722
+ // SAFETY: Compressing the arrays does not change their logical values.
723
unsafe {
724
Ok(
- DictArray::new_unchecked(compressed_codes, dict.values().clone())
725
+ DictArray::new_unchecked(compressed_codes, compressed_values)
726
.set_all_values_referenced(dict.has_all_values_referenced())
727
.into_array(),
728
)
0 commit comments