Skip to content

Commit 3e2667a

Browse files
committed
projection indices
1 parent c6cebbd commit 3e2667a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datafusion/datasource-avro/src/source.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use serde_json::Value;
4141
pub struct AvroSource {
4242
table_schema: TableSchema,
4343
batch_size: Option<usize>,
44-
projection: Option<Vec<String>>,
44+
projection: Option<Vec<usize>>,
4545
metrics: ExecutionPlanMetricsSet,
4646
schema_adapter_factory: Option<Arc<dyn SchemaAdapterFactory>>,
4747
}
@@ -182,7 +182,7 @@ impl FileSource for AvroSource {
182182

183183
fn with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource> {
184184
let mut conf = self.clone();
185-
conf.projection = config.projected_file_column_names();
185+
conf.projection = config.file_column_projection_indices();
186186
Arc::new(conf)
187187
}
188188

0 commit comments

Comments
 (0)