Skip to content

Apache DataFusion SQL Query Engine

Make FileScanConfig::project pub (#6931)

Daniël Heres04ecaf7405db
diff --git a/datafusion/core/src/datasource/physical_plan/mod.rs b/datafusion/core/src/datasource/physical_plan/mod.rs
index 695e3239c5..646d3a9ee5 100644
--- a/datafusion/core/src/datasource/physical_plan/mod.rs
+++ b/datafusion/core/src/datasource/physical_plan/mod.rs
@@ -170,7 +170,7 @@ pub struct FileScanConfig {
impl FileScanConfig {
/// Project the schema and the statistics on the given column indices
- fn project(&self) -> (SchemaRef, Statistics, Vec<LexOrdering>) {
+ pub fn project(&self) -> (SchemaRef, Statistics, Vec<LexOrdering>) {
if self.projection.is_none() && self.table_partition_cols.is_empty() {
return (
Arc::clone(&self.file_schema),