Skip to content

Commit 42f7b07

Browse files
committed
expr.display_name is deprecated, used format!() + schema_name() instead
1 parent daeac53 commit 42f7b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl PyExpr {
190190
/// Returns the name of this expression as it should appear in a schema. This name
191191
/// will not include any CAST expressions.
192192
fn display_name(&self) -> PyResult<String> {
193-
Ok(self.expr.display_name()?)
193+
Ok(format!("{}", self.expr.schema_name()))
194194
}
195195

196196
/// Returns a full and complete string representation of this expression.

0 commit comments

Comments
 (0)