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

Method save

datafusion/expr/src/expr_rewriter/mod.rs:341–356  ·  view source on GitHub ↗
(&self, expr: &Expr)

Source from the content-addressed store, hash-verified

339 }
340
341 pub fn save(&self, expr: &Expr) -> SavedName {
342 if self.use_alias {
343 match expr {
344 Expr::Alias(alias) => SavedName::Saved {
345 relation: alias.relation.clone(),
346 name: alias.name.clone(),
347 },
348 _ => {
349 let (relation, name) = expr.qualified_name();
350 SavedName::Saved { relation, name }
351 }
352 }
353 } else {
354 SavedName::None
355 }
356 }
357}
358
359impl SavedName {

Callers 10

test_rewriteFunction · 0.45
plan_aggregateMethod · 0.45
plan_windowMethod · 0.45
try_optimize_windowMethod · 0.45
rewrite_planMethod · 0.45
analyze_internalFunction · 0.45
optimize_internalMethod · 0.45

Calls 2

qualified_nameMethod · 0.80
cloneMethod · 0.45

Tested by 1

test_rewriteFunction · 0.36