diff --git a/src/expr.rs b/src/expr.rs index 90ce6bf0e..ef949e2ab 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -79,6 +79,17 @@ impl PyExpr { }) } + /// Returns the name of this expression as it should appear in a schema. This name + /// will not include any CAST expressions. + fn display_name(&self) -> PyResult { + Ok(self.expr.display_name()?) + } + + /// Returns a full and complete string representation of this expression. + fn canonical_name(&self) -> PyResult { + Ok(self.expr.canonical_name()) + } + fn __richcmp__(&self, other: PyExpr, op: CompareOp) -> PyExpr { let expr = match op { CompareOp::Lt => self.expr.clone().lt(other.expr),