Skip to content

Commit

Permalink
revert apache#6595
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener committed Jul 3, 2023
1 parent d37351a commit 600ad76
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions datafusion/expr/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,13 @@ pub fn from_plan(
inputs: &[LogicalPlan],
) -> Result<LogicalPlan> {
match plan {
LogicalPlan::Projection(_) => Ok(LogicalPlan::Projection(Projection::try_new(
expr.to_vec(),
Arc::new(inputs[0].clone()),
)?)),
LogicalPlan::Projection(Projection { schema, .. }) => {
Ok(LogicalPlan::Projection(Projection::try_new_with_schema(
expr.to_vec(),
Arc::new(inputs[0].clone()),
schema.clone(),
)?))
}
LogicalPlan::Dml(DmlStatement {
table_name,
table_schema,
Expand Down

0 comments on commit 600ad76

Please sign in to comment.