Skip to content

Commit

Permalink
Merge pull request #30878 from ggevay/typ-keys-with-input-keys
Browse files Browse the repository at this point in the history
Eliminate unnecessary `.typ()` call from `keys_with_input_keys`
  • Loading branch information
ggevay authored Jan 6, 2025
2 parents 23c85ef + 55e0c3d commit 0498dcc
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/expr/src/relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,13 +1107,18 @@ impl MirRelationExpr {
{
if first_id == second_id {
result.extend(
inputs[0].typ().keys.drain(..).filter(|key| {
key.iter().all(|c| {
outputs.get(*c) == Some(c)
&& base_projection.get(*c)
== Some(c)
input_keys
.next()
.unwrap()
.into_iter()
.filter(|key| {
key.iter().all(|c| {
outputs.get(*c) == Some(c)
&& base_projection.get(*c)
== Some(c)
})
})
}),
.cloned(),
);
}
}
Expand Down

0 comments on commit 0498dcc

Please sign in to comment.