Skip to content

Commit aa4ff8d

Browse files
committed
Fix some new warnings
Signed-off-by: Nick Cameron <nrc@ncameron.org>
1 parent bfd8156 commit aa4ff8d

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

datafusion/common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ path = "src/lib.rs"
3939
avro = ["apache-avro"]
4040
backtrace = []
4141
pyarrow = ["pyo3", "arrow/pyarrow", "parquet"]
42+
force_hash_collisions = []
4243

4344
[dependencies]
4445
ahash = { workspace = true }

datafusion/core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ default = [
6060
]
6161
encoding_expressions = ["datafusion-functions/encoding_expressions"]
6262
# Used for testing ONLY: causes all values to hash to the same value (test for collisions)
63-
force_hash_collisions = []
63+
force_hash_collisions = ["datafusion-physical-plan/force_hash_collisions", "datafusion-common/force_hash_collisions"]
6464
math_expressions = ["datafusion-functions/math_expressions"]
6565
parquet = ["datafusion-common/parquet", "dep:parquet"]
6666
pyarrow = ["datafusion-common/pyarrow", "parquet"]

datafusion/expr/src/simplify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<'a> SimplifyContext<'a> {
7474
impl<'a> SimplifyInfo for SimplifyContext<'a> {
7575
/// returns true if this Expr has boolean type
7676
fn is_boolean_type(&self, expr: &Expr) -> Result<bool> {
77-
for schema in &self.schema {
77+
if let Some(schema) = &self.schema {
7878
if let Ok(DataType::Boolean) = expr.get_type(schema) {
7979
return Ok(true);
8080
}

datafusion/physical-plan/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ rust-version = { workspace = true }
3131
[lints]
3232
workspace = true
3333

34+
[features]
35+
force_hash_collisions = []
36+
3437
[lib]
3538
name = "datafusion_physical_plan"
3639
path = "src/lib.rs"

0 commit comments

Comments
 (0)