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

Method project

datafusion/common/src/stats.rs:489–492  ·  view source on GitHub ↗

Project the statistics to the given column indices. For example, if we had statistics for columns `{"a", "b", "c"}`, projecting to `vec![2, 1]` would return statistics for columns `{"c", "b"}`.

(self, projection: Option<&impl AsRef<[usize]>>)

Source from the content-addressed store, hash-verified

487 /// projecting to `vec![2, 1]` would return statistics for columns `{"c",
488 /// "b"}`.
489 pub fn project(self, projection: Option<&impl AsRef<[usize]>>) -> Self {
490 let projection = projection.map(AsRef::as_ref);
491 self.project_impl(projection)
492 }
493
494 fn project_impl(mut self, projection: Option<&[usize]>) -> Self {
495 let Some(projection) = projection.map(AsRef::as_ref) else {

Callers 15

test_all_operatorsFunction · 0.45
errorsFunction · 0.45
aggregate_with_aliasFunction · 0.45
createMethod · 0.45
selectMethod · 0.45
aggregateMethod · 0.45
executeMethod · 0.45
custom_source_dataframeFunction · 0.45

Calls 2

project_implMethod · 0.80
mapMethod · 0.45

Tested by 15

test_all_operatorsFunction · 0.36
executeMethod · 0.36
custom_source_dataframeFunction · 0.36
apply_projectionFunction · 0.36
test_count_wildcardFunction · 0.36
to_timestamp_expr_foldedFunction · 0.36
multiple_nowFunction · 0.36