File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed
Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -152,4 +152,5 @@ rpath = false
152152large_futures = " warn"
153153
154154[workspace .lints .rust ]
155+ unexpected_cfgs = { level = " warn" , check-cfg = [" cfg(tarpaulin)" ] }
155156unused_imports = " deny"
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ path = "src/lib.rs"
3939avro = [" apache-avro" ]
4040backtrace = []
4141pyarrow = [" pyo3" , " arrow/pyarrow" , " parquet" ]
42+ force_hash_collisions = []
4243
4344[dependencies ]
4445ahash = { workspace = true }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ default = [
6060]
6161encoding_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 " ]
6464math_expressions = [" datafusion-functions/math_expressions" ]
6565parquet = [" datafusion-common/parquet" , " dep:parquet" ]
6666pyarrow = [" datafusion-common/pyarrow" , " parquet" ]
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl<'a> SimplifyContext<'a> {
7474impl < ' 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 }
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ rust-version = { workspace = true }
3131[lints ]
3232workspace = true
3333
34+ [features ]
35+ force_hash_collisions = []
36+
3437[lib ]
3538name = " datafusion_physical_plan"
3639path = " src/lib.rs"
You can’t perform that action at this time.
0 commit comments