Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/apache/datafusion"
# Define Minimum Supported Rust Version (MSRV)
rust-version = "1.82.0"
rust-version = "1.81.0"
# Define DataFusion version
version = "46.0.0"

Expand Down
7 changes: 4 additions & 3 deletions datafusion/common/src/table_reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,17 @@ impl TableReference {
match self {
TableReference::Bare { table } => **table == *other.table(),
TableReference::Partial { schema, table } => {
**table == *other.table() && other.schema().is_none_or(|s| *s == **schema)
**table == *other.table()
&& other.schema().map_or(true, |s| *s == **schema)
}
TableReference::Full {
catalog,
schema,
table,
} => {
**table == *other.table()
&& other.schema().is_none_or(|s| *s == **schema)
&& other.catalog().is_none_or(|c| *c == **catalog)
&& other.schema().map_or(true, |s| *s == **schema)
&& other.catalog().map_or(true, |c| *c == **catalog)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/expr/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ pub fn exprlist_len(
.enumerate()
.filter_map(|(idx, field)| {
let (maybe_table_ref, _) = schema.qualified_field(idx);
if maybe_table_ref.is_none_or(|q| q == qualifier) {
if maybe_table_ref.map_or(true, |q| q == qualifier) {
Some((maybe_table_ref.cloned(), Arc::clone(field)))
} else {
None
Expand Down
8 changes: 5 additions & 3 deletions datafusion/physical-expr-common/src/sort_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ impl PhysicalSortExpr {
let nullable = self.expr.nullable(schema).unwrap_or(true);
self.expr.eq(&requirement.expr)
&& if nullable {
requirement.options.is_none_or(|opts| self.options == opts)
requirement
.options
.map_or(true, |opts| self.options == opts)
} else {
requirement
.options
.is_none_or(|opts| self.options.descending == opts.descending)
.map_or(true, |opts| self.options.descending == opts.descending)
}
}
}
Expand Down Expand Up @@ -291,7 +293,7 @@ impl PhysicalSortRequirement {
self.expr.eq(&other.expr)
&& other
.options
.is_none_or(|other_opts| self.options == Some(other_opts))
.map_or(true, |other_opts| self.options == Some(other_opts))
}

#[deprecated(since = "43.0.0", note = "use LexRequirement::from_lex_ordering")]
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# to compile this workspace and run CI jobs.

[toolchain]
channel = "1.85.0"
channel = "1.84.1"
components = ["rustfmt", "clippy"]