We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 968400d commit acc678cCopy full SHA for acc678c
2 files changed
vortex-btrblocks/src/compressor/bool/mod.rs
@@ -140,7 +140,7 @@ impl Scheme for ConstantScheme {
140
}
141
142
// Only compress non-nullable or all-valid nullable arrays.
143
- if stats.src.dtype().is_nullable() && !stats.src.all_valid()? {
+ if stats.src.dtype().is_nullable() && stats.null_count > 0 {
144
return Ok(0.0);
145
146
vortex-btrblocks/src/compressor/bool/stats.rs
@@ -19,7 +19,6 @@ use crate::sample::sample;
19
pub struct BoolStats {
20
pub(crate) src: BoolArray,
21
/// Number of null values.
22
- #[allow(dead_code)]
23
pub(crate) null_count: u32,
24
/// Number of non-null values.
25
pub(crate) value_count: u32,
0 commit comments