We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6cebbd commit 3e2667aCopy full SHA for 3e2667a
datafusion/datasource-avro/src/source.rs
@@ -41,7 +41,7 @@ use serde_json::Value;
41
pub struct AvroSource {
42
table_schema: TableSchema,
43
batch_size: Option<usize>,
44
- projection: Option<Vec<String>>,
+ projection: Option<Vec<usize>>,
45
metrics: ExecutionPlanMetricsSet,
46
schema_adapter_factory: Option<Arc<dyn SchemaAdapterFactory>>,
47
}
@@ -182,7 +182,7 @@ impl FileSource for AvroSource {
182
183
fn with_projection(&self, config: &FileScanConfig) -> Arc<dyn FileSource> {
184
let mut conf = self.clone();
185
- conf.projection = config.projected_file_column_names();
+ conf.projection = config.file_column_projection_indices();
186
Arc::new(conf)
187
188
0 commit comments