diff --git a/crates/polars-sql/src/functions.rs b/crates/polars-sql/src/functions.rs index 92462e553196..b51a1cf4908a 100644 --- a/crates/polars-sql/src/functions.rs +++ b/crates/polars-sql/src/functions.rs @@ -703,7 +703,7 @@ impl SqlFunctionVisitor<'_> { InitCap => self.visit_unary(|e| e.str().to_titlecase()), Left => self.try_visit_binary(|e, length| { Ok(match length { - Expr::Literal(LiteralValue::Int64(_n)) => { + Expr::Literal(LiteralValue::Int64(_)) => { e.str().slice(lit(0), length) }, _ => {