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

Method with_projection

datafusion/catalog/src/table.rs:419–422  ·  view source on GitHub ↗

Set the column projection for the scan. The projection is a list of column indices from [`TableProvider::schema`] that should be included in the scan results. If `None`, all columns are included. # Arguments `projection` - Optional slice of column indices to project

(mut self, projection: Option<&'a [usize]>)

Source from the content-addressed store, hash-verified

417 /// # Arguments
418 /// * `projection` - Optional slice of column indices to project
419 pub fn with_projection(mut self, projection: Option<&'a [usize]>) -> Self {
420 self.projection = projection;
421 self
422 }
423
424 /// Get the column projection for the scan.
425 ///

Callers 3

scanMethod · 0.45
scanMethod · 0.45
scanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected