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

Method select

datafusion/expr/src/logical_plan/builder.rs:615–621  ·  view source on GitHub ↗

Select the given column indices

(self, indices: impl IntoIterator<Item = usize>)

Source from the content-addressed store, hash-verified

613
614 /// Select the given column indices
615 pub fn select(self, indices: impl IntoIterator<Item = usize>) -> Result<Self> {
616 let exprs: Vec<_> = indices
617 .into_iter()
618 .map(|x| Expr::Column(Column::from(self.plan.schema().qualified_field(x))))
619 .collect();
620 self.project(exprs)
621 }
622
623 /// Apply a filter
624 pub fn filter(self, expr: impl Into<Expr>) -> Result<Self> {

Callers

nothing calls this directly

Calls 7

collectMethod · 0.80
qualified_fieldMethod · 0.80
ColumnClass · 0.50
mapMethod · 0.45
into_iterMethod · 0.45
schemaMethod · 0.45
projectMethod · 0.45

Tested by

no test coverage detected