Skip to content

Commit

Permalink
last minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGS committed Jul 17, 2024
1 parent 7590b67 commit e09d897
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vortex-array/src/array/constant/canonical.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::iter;

use vortex_dtype::{match_each_native_ptype, Nullability, PType};
use vortex_dtype::{match_each_native_ptype, DType, Nullability, PType};
use vortex_error::{vortex_bail, VortexResult};
use vortex_scalar::{BoolScalar, Utf8Scalar};

Expand Down Expand Up @@ -35,7 +35,7 @@ impl IntoCanonical for ConstantArray {

return Ok(Canonical::VarBin(VarBinArray::from_iter(
iter::repeat(Some(bytes)).take(self.len()),
vortex_dtype::DType::Utf8(validity.nullability()),
DType::Utf8(validity.nullability()),
)));
}

Expand Down
4 changes: 3 additions & 1 deletion vortex-datafusion/src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ fn eval_eq_impl(input: &StructArray, lhs: &Expr, rhs: &Expr) -> VortexResult<Arr
Ok(BoolArray::from_vec(vec![false; input.len()], Validity::AllValid).into_array())
}
}
_ => vortex_bail!("Unsupported expression combination for eq. ({lhs:?}) with ({rhs:?})."),
_ => vortex_bail!(
"Unsupported expression combination for operation 'eq', ({lhs:?} with {rhs:?})"
),
}
}

Expand Down

0 comments on commit e09d897

Please sign in to comment.