diff --git a/datafusion/expr/src/expr.rs b/datafusion/expr/src/expr.rs index 0818c2062ea3..025a48731d48 100644 --- a/datafusion/expr/src/expr.rs +++ b/datafusion/expr/src/expr.rs @@ -630,6 +630,7 @@ impl Sort { } } + /// Replaces the Sort expressions with `expr` pub fn with_expr(&self, expr: Expr) -> Self { Self { expr,