File tree 6 files changed +10
-13
lines changed
physical-expr/src/equivalence
6 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ homepage = "https://datafusion.apache.org"
66
66
license = " Apache-2.0"
67
67
readme = " README.md"
68
68
repository = " https://github.com/apache/datafusion"
69
- rust-version = " 1.81 .0"
69
+ rust-version = " 1.82 .0"
70
70
version = " 45.0.0"
71
71
72
72
[workspace .dependencies ]
Original file line number Diff line number Diff line change @@ -193,17 +193,16 @@ impl TableReference {
193
193
match self {
194
194
TableReference :: Bare { table } => * * table == * other. table ( ) ,
195
195
TableReference :: Partial { schema, table } => {
196
- * * table == * other. table ( )
197
- && other. schema ( ) . map_or ( true , |s| * s == * * schema)
196
+ * * table == * other. table ( ) && other. schema ( ) . is_none_or ( |s| * s == * * schema)
198
197
}
199
198
TableReference :: Full {
200
199
catalog,
201
200
schema,
202
201
table,
203
202
} => {
204
203
* * table == * other. table ( )
205
- && other. schema ( ) . map_or ( true , |s| * s == * * schema)
206
- && other. catalog ( ) . map_or ( true , |c| * c == * * catalog)
204
+ && other. schema ( ) . is_none_or ( |s| * s == * * schema)
205
+ && other. catalog ( ) . is_none_or ( |c| * c == * * catalog)
207
206
}
208
207
}
209
208
}
Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ pub fn exprlist_len(
832
832
. enumerate ( )
833
833
. filter_map ( |( idx, field) | {
834
834
let ( maybe_table_ref, _) = schema. qualified_field ( idx) ;
835
- if maybe_table_ref. map_or ( true , |q| q == qualifier) {
835
+ if maybe_table_ref. is_none_or ( |q| q == qualifier) {
836
836
Some ( ( maybe_table_ref. cloned ( ) , Arc :: clone ( field) ) )
837
837
} else {
838
838
None
Original file line number Diff line number Diff line change @@ -172,13 +172,11 @@ impl PhysicalSortExpr {
172
172
let nullable = self . expr . nullable ( schema) . unwrap_or ( true ) ;
173
173
self . expr . eq ( & requirement. expr )
174
174
&& if nullable {
175
- requirement
176
- . options
177
- . map_or ( true , |opts| self . options == opts)
175
+ requirement. options . is_none_or ( |opts| self . options == opts)
178
176
} else {
179
177
requirement
180
178
. options
181
- . map_or ( true , |opts| self . options . descending == opts. descending )
179
+ . is_none_or ( |opts| self . options . descending == opts. descending )
182
180
}
183
181
}
184
182
}
@@ -293,7 +291,7 @@ impl PhysicalSortRequirement {
293
291
self . expr . eq ( & other. expr )
294
292
&& other
295
293
. options
296
- . map_or ( true , |other_opts| self . options == Some ( other_opts) )
294
+ . is_none_or ( |other_opts| self . options == Some ( other_opts) )
297
295
}
298
296
299
297
#[ deprecated( since = "43.0.0" , note = "use LexRequirement::from_lex_ordering" ) ]
Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ impl EquivalenceProperties {
640
640
req. expr . eq ( & existing. expr )
641
641
&& req
642
642
. options
643
- . map_or ( true , |req_opts| req_opts == existing. options )
643
+ . is_none_or ( |req_opts| req_opts == existing. options )
644
644
} ,
645
645
)
646
646
} )
Original file line number Diff line number Diff line change 19
19
# to compile this workspace and run CI jobs.
20
20
21
21
[toolchain ]
22
- channel = " 1.84.1 "
22
+ channel = " 1.85.0 "
23
23
components = [" rustfmt" , " clippy" ]
You can’t perform that action at this time.
0 commit comments