Skip to content

Apache DataFusion SQL Query Engine

Fix compialtion on main (#12108)

Andrew Lamb9a1a92d5cd6b
diff --git a/datafusion/expr/src/logical_plan/builder.rs b/datafusion/expr/src/logical_plan/builder.rs
index ce88f94034..559908bcfd 100644
--- a/datafusion/expr/src/logical_plan/builder.rs
+++ b/datafusion/expr/src/logical_plan/builder.rs
@@ -399,7 +399,7 @@ impl LogicalPlanBuilder {
/// Apply a filter which is used for a having clause
pub fn having(self, expr: impl Into<Expr>) -> Result<Self> {
let expr = normalize_col(expr.into(), &self.plan)?;
- Filter::try_new_with_having(expr, Arc::new(self.plan))
+ Filter::try_new_with_having(expr, self.plan)
.map(LogicalPlan::Filter)
.map(Self::from)
}