Skip to content

Commit

Permalink
fix(substrait): return an error when apply_projection is called with …
Browse files Browse the repository at this point in the history
…something other than a TableScan
  • Loading branch information
tokoko committed Oct 10, 2024
1 parent e8b2b2a commit bbf7e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion/substrait/src/logical_plan/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ fn apply_projection(table: DataFrame, substrait_schema: DFSchema) -> Result<Logi

Ok(LogicalPlan::TableScan(scan))
}
_ => Ok(t),
_ => plan_err!("DataFrame passed to apply_projection must be a TableScan"),
}
}

Expand Down

0 comments on commit bbf7e48

Please sign in to comment.