MCPcopy Create free account
hub / github.com/apache/datafusion / projected_schema

Method projected_schema

datafusion/datasource/src/file_scan_config/mod.rs:1115–1121  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1113 }
1114
1115 pub fn projected_schema(&self) -> Result<Arc<Schema>> {
1116 let schema = self.file_source.table_schema().table_schema();
1117 match self.file_source.projection() {
1118 Some(proj) => Ok(Arc::new(proj.project_schema(schema)?)),
1119 None => Ok(Arc::clone(schema)),
1120 }
1121 }
1122
1123 fn add_filter_equivalence_info(
1124 filter: &Arc<dyn PhysicalExpr>,

Callers 7

buildMethod · 0.45
rebuild_with_sourceMethod · 0.45
fmt_asMethod · 0.45
output_partitioningMethod · 0.45
partition_statisticsMethod · 0.45

Calls 4

newFunction · 0.85
project_schemaMethod · 0.80
table_schemaMethod · 0.45
projectionMethod · 0.45