Skip to content

Commit 3888ebf

Browse files
authored
Revert "Bump MSRV to 1.82, toolchain to 1.85 (apache#14811)" (#10)
This reverts commit 3750dc9
1 parent a96503b commit 3888ebf

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ license = "Apache-2.0"
6767
readme = "README.md"
6868
repository = "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
7272
version = "46.0.0"
7373

datafusion/common/src/table_reference.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

datafusion/expr/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

datafusion/physical-expr-common/src/sort_expr.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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")]

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
# to compile this workspace and run CI jobs.
2020

2121
[toolchain]
22-
channel = "1.85.0"
22+
channel = "1.84.1"
2323
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)