diff --git a/datafusion/sql/src/unparser/plan.rs b/datafusion/sql/src/unparser/plan.rs index 19e31f3daab17..695027374fa09 100644 --- a/datafusion/sql/src/unparser/plan.rs +++ b/datafusion/sql/src/unparser/plan.rs @@ -675,7 +675,7 @@ impl Unparser<'_> { }) }) .transpose(); - + if let Some(filter) = filter_expr? { builder = builder.filter(filter)?; }