Skip to content

Commit

Permalink
fix: wrong projection
Browse files Browse the repository at this point in the history
  • Loading branch information
holicc committed Jul 4, 2024
1 parent 46f25fb commit 03a4cdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ pub struct DefaultQueryPlanner;
impl DefaultQueryPlanner {
fn physical_plan_projection(&self, projection: &Projection) -> Result<Arc<dyn PhysicalPlan>> {
let physical_plan = self.create_physical_plan(&projection.input)?;
let schema = physical_plan.schema();
let exprs = projection
.exprs
.iter()
.map(|e| self.create_physical_expr(&projection.schema, e))
.map(|e| self.create_physical_expr(&schema, e))
.collect::<Result<Vec<_>>>()?;
Ok(Arc::new(physical::plan::Projection::new(
projection.schema.clone(),
Expand Down

0 comments on commit 03a4cdd

Please sign in to comment.