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

Function schema_columns

datafusion/optimizer/src/utils.rs:92–103  ·  view source on GitHub ↗

Returns references to all columns in the schema

(schema: &'a DFSchema)

Source from the content-addressed store, hash-verified

90
91/// Returns references to all columns in the schema
92pub(crate) fn schema_columns<'a>(schema: &'a DFSchema) -> HashSet<ColumnReference<'a>> {
93 schema
94 .iter()
95 .flat_map(|(qualifier, field)| {
96 [
97 ColumnReference::new(qualifier, field.name()),
98 // we need to push down filter using unqualified column as well
99 ColumnReference::new_unqualified(field.name()),
100 ]
101 })
102 .collect::<HashSet<_>>()
103}
104
105/// Log the plan in debug/tracing mode after some part of the optimizer runs
106pub fn log_plan(description: &str, plan: &LogicalPlan) {

Callers 5

extract_from_planFunction · 0.85
try_push_into_inputsFunction · 0.85
is_left_onlyMethod · 0.85
is_right_onlyMethod · 0.85
push_down_all_joinFunction · 0.85

Calls 3

newFunction · 0.85
iterMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…