File tree Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Expand file tree Collapse file tree 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ license = "Apache-2.0"
6767readme = " README.md"
6868repository = " https://github.com/apache/datafusion"
6969# Define Minimum Supported Rust Version (MSRV)
70- rust-version = " 1.82 .0"
70+ rust-version = " 1.81 .0"
7171# Define DataFusion version
7272version = " 46.0.0"
7373
Original file line number Diff line number Diff line change @@ -193,16 +193,17 @@ impl TableReference {
193193 match self {
194194 TableReference :: Bare { table } => * * table == * other. table ( ) ,
195195 TableReference :: Partial { schema, table } => {
196- * * table == * other. table ( ) && other. schema ( ) . is_none_or ( |s| * s == * * schema)
196+ * * table == * other. table ( )
197+ && other. schema ( ) . map_or ( true , |s| * s == * * schema)
197198 }
198199 TableReference :: Full {
199200 catalog,
200201 schema,
201202 table,
202203 } => {
203204 * * table == * other. table ( )
204- && other. schema ( ) . is_none_or ( |s| * s == * * schema)
205- && other. catalog ( ) . is_none_or ( |c| * c == * * catalog)
205+ && other. schema ( ) . map_or ( true , |s| * s == * * schema)
206+ && other. catalog ( ) . map_or ( true , |c| * c == * * catalog)
206207 }
207208 }
208209 }
Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ pub fn exprlist_len(
837837 . enumerate ( )
838838 . filter_map ( |( idx, field) | {
839839 let ( maybe_table_ref, _) = schema. qualified_field ( idx) ;
840- if maybe_table_ref. is_none_or ( |q| q == qualifier) {
840+ if maybe_table_ref. map_or ( true , |q| q == qualifier) {
841841 Some ( ( maybe_table_ref. cloned ( ) , Arc :: clone ( field) ) )
842842 } else {
843843 None
Original file line number Diff line number Diff line change @@ -172,11 +172,13 @@ impl PhysicalSortExpr {
172172 let nullable = self . expr . nullable ( schema) . unwrap_or ( true ) ;
173173 self . expr . eq ( & requirement. expr )
174174 && if nullable {
175- requirement. options . is_none_or ( |opts| self . options == opts)
175+ requirement
176+ . options
177+ . map_or ( true , |opts| self . options == opts)
176178 } else {
177179 requirement
178180 . options
179- . is_none_or ( |opts| self . options . descending == opts. descending )
181+ . map_or ( true , |opts| self . options . descending == opts. descending )
180182 }
181183 }
182184}
@@ -291,7 +293,7 @@ impl PhysicalSortRequirement {
291293 self . expr . eq ( & other. expr )
292294 && other
293295 . options
294- . is_none_or ( |other_opts| self . options == Some ( other_opts) )
296+ . map_or ( true , |other_opts| self . options == Some ( other_opts) )
295297 }
296298
297299 #[ deprecated( since = "43.0.0" , note = "use LexRequirement::from_lex_ordering" ) ]
Original file line number Diff line number Diff line change 1919# to compile this workspace and run CI jobs.
2020
2121[toolchain ]
22- channel = " 1.85.0 "
22+ channel = " 1.84.1 "
2323components = [" rustfmt" , " clippy" ]
You can’t perform that action at this time.
0 commit comments