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

Method qualified_name

datafusion/expr/src/expr.rs:1616–1626  ·  view source on GitHub ↗

Returns the qualifier and the schema name of this expression. Used when the expression forms the output field of a certain plan. The result is the field's qualifier and field name in the plan's output schema. We can use this qualified name to reference the field.

(&self)

Source from the content-addressed store, hash-verified

1614 /// The result is the field's qualifier and field name in the plan's
1615 /// output schema. We can use this qualified name to reference the field.
1616 pub fn qualified_name(&self) -> (Option<TableReference>, String) {
1617 match self {
1618 Expr::Column(Column {
1619 relation,
1620 name,
1621 spans: _,
1622 }) => (relation.clone(), name.clone()),
1623 Expr::Alias(Alias { relation, name, .. }) => (relation.clone(), name.clone()),
1624 _ => (None, self.schema_name().to_string()),
1625 }
1626 }
1627
1628 /// Returns placement information for this expression.
1629 ///

Callers 10

to_fieldMethod · 0.80
saveMethod · 0.80
restoreMethod · 0.80
test_rewriteFunction · 0.80
would_conflictMethod · 0.80
insertMethod · 0.80
rewriteMethod · 0.80
extract_expressionsFunction · 0.80

Calls 3

cloneMethod · 0.45
to_stringMethod · 0.45
schema_nameMethod · 0.45

Tested by 1

test_rewriteFunction · 0.64