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

Method unprojected

datafusion/datasource/src/projection.rs:171–177  ·  view source on GitHub ↗
(table_schema: &TableSchema)

Source from the content-addressed store, hash-verified

169
170impl SplitProjection {
171 pub fn unprojected(table_schema: &TableSchema) -> Self {
172 let projection = ProjectionExprs::from_indices(
173 &(0..table_schema.table_schema().fields().len()).collect_vec(),
174 table_schema.table_schema(),
175 );
176 Self::new(table_schema.file_schema(), &projection)
177 }
178
179 /// Creates a new [`SplitProjection`] by splitting a projection into
180 /// simple file column indices and a remainder projection that is applied after reading the file.

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
lenMethod · 0.45
fieldsMethod · 0.45
table_schemaMethod · 0.45
file_schemaMethod · 0.45

Tested by

no test coverage detected