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)
| 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 | /// |