Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Feb 24, 2025
1 parent 9060345 commit 79fbc0e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions datafusion/optimizer/src/optimize_projections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,7 @@ fn rewrite_expr(expr: Expr, input: &Projection) -> Result<Transformed<Expr>> {
let input_expr = match FieldId::from(idx) {
FieldId::Metadata(_) => {
let (relation, field) = input.schema.qualified_field(idx);
Expr::Column(Column::new(
relation.cloned(),
field.name().clone(),
))
Expr::Column(Column::new(relation.cloned(), field.name().clone()))
}
FieldId::Normal(idx) => input.expr[idx].clone().unalias_nested().data,
};
Expand Down Expand Up @@ -781,10 +778,7 @@ fn rewrite_projection_given_requirements(
.map(|&idx| match FieldId::from(idx) {
FieldId::Metadata(_) => {
let (relation, field) = schema.qualified_field(idx);
Expr::Column(Column::new(
relation.cloned(),
field.name().clone(),
))
Expr::Column(Column::new(relation.cloned(), field.name().clone()))
}
FieldId::Normal(idx) => expr[idx].clone(),
})
Expand Down

0 comments on commit 79fbc0e

Please sign in to comment.