Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Jan 23, 2025
1 parent 33ee69a commit 2330277
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion encodings/dict/src/compute/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl CompareFn<DictArray> for DictEncoding {
if selection.selectivity() < 0.2 {
if let Some(const_scalar) = rhs.as_constant() {
// Ensure the other is the same length as the dictionary
println!("lhs.values().len() = {}", lhs.values().len());
// println!("lhs.values().len() = {}", lhs.values().len());
let compare_result = compare(
lhs.values(),
ConstantArray::new(const_scalar, lhs.values().len()),
Expand Down
2 changes: 1 addition & 1 deletion vortex-array/src/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ pub trait IntoCanonical {
Self: Sized,
Self: AsRef<ArrayData>,
{
if mask.selectivity() < 0.2 {
if mask.selectivity() < 0.99 {
filter(self.as_ref(), mask)?.into_canonical()
} else {
filter(self.into_canonical()?.as_ref(), mask)?.into_canonical()
Expand Down
4 changes: 2 additions & 2 deletions vortex-array/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ impl ArrayData {
}

pub fn metadata_bytes(&self) -> Option<&[u8]> {
println!("encoding {:?}", self.encoding().id());
//println!("encoding {:?}", self.encoding().id());
let md = match &self.0 {
InnerArrayData::Owned(d) => d.metadata.as_ref().map(|b| b.as_slice()),
InnerArrayData::Viewed(v) => v.flatbuffer().metadata().map(|m| m.bytes()),
};
println!("md bytes {:?}", md);
//println!("md bytes {:?}", md);
md
}

Expand Down
2 changes: 1 addition & 1 deletion vortex-layout/src/layouts/flat/eval_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl ExprEvaluator for FlatReader {
);

// Decode into an ArrayData.
println!("decoding array of type {}", self.dtype());
// println!("decoding array of type {}", self.dtype());
let array = array_parts.decode(self.ctx(), self.dtype().clone())?;
assert_eq!(
array.len() as u64,
Expand Down

0 comments on commit 2330277

Please sign in to comment.