diff --git a/datafusion/sql/src/unparser/plan.rs b/datafusion/sql/src/unparser/plan.rs index d736cae86c6ef..525442b129862 100644 --- a/datafusion/sql/src/unparser/plan.rs +++ b/datafusion/sql/src/unparser/plan.rs @@ -15,7 +15,9 @@ // specific language governing permissions and limitations // under the License. -use datafusion_common::{internal_err, not_impl_err, plan_err, Column, DataFusionError, Result}; +use datafusion_common::{ + internal_err, not_impl_err, plan_err, Column, DataFusionError, Result, +}; use datafusion_expr::{ expr::Alias, Distinct, Expr, JoinConstraint, JoinType, LogicalPlan, Projection, SortExpr, @@ -454,7 +456,9 @@ impl Unparser<'_> { let (plan, mut columns) = subquery_alias_inner_query_and_columns(&plan_alias); - if !columns.is_empty() && !self.dialect.supports_column_alias_in_table_alias() { + if !columns.is_empty() + && !self.dialect.supports_column_alias_in_table_alias() + { // if columns are returned than plan corresponds to a projection let LogicalPlan::Projection(inner_p) = plan else { return plan_err!(