The name of the column (field) that this `Expr` will produce in the physical plan. The difference from [Expr::schema_name] is that top-level columns are unqualified.
(expr: &Expr)
| 3744 | /// The name of the column (field) that this `Expr` will produce in the physical plan. |
| 3745 | /// The difference from [Expr::schema_name] is that top-level columns are unqualified. |
| 3746 | pub fn physical_name(expr: &Expr) -> Result<String> { |
| 3747 | match expr { |
| 3748 | Expr::Column(col) => Ok(col.name.clone()), |
| 3749 | Expr::Alias(alias) => Ok(alias.name.clone()), |
| 3750 | _ => Ok(expr.schema_name().to_string()), |
| 3751 | } |
| 3752 | } |
| 3753 | |
| 3754 | #[cfg(test)] |
| 3755 | mod test { |
no test coverage detected
searching dependent graphs…