Skip to content

Commit 600ad76

Browse files
committed
revert #6595
1 parent d37351a commit 600ad76

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

datafusion/expr/src/utils.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,13 @@ pub fn from_plan(
730730
inputs: &[LogicalPlan],
731731
) -> Result<LogicalPlan> {
732732
match plan {
733-
LogicalPlan::Projection(_) => Ok(LogicalPlan::Projection(Projection::try_new(
734-
expr.to_vec(),
735-
Arc::new(inputs[0].clone()),
736-
)?)),
733+
LogicalPlan::Projection(Projection { schema, .. }) => {
734+
Ok(LogicalPlan::Projection(Projection::try_new_with_schema(
735+
expr.to_vec(),
736+
Arc::new(inputs[0].clone()),
737+
schema.clone(),
738+
)?))
739+
}
737740
LogicalPlan::Dml(DmlStatement {
738741
table_name,
739742
table_schema,

0 commit comments

Comments
 (0)