Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrebnov committed Sep 5, 2024
1 parent ab364d3 commit 4f5d93b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions datafusion/sql/src/unparser/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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!(
Expand Down

0 comments on commit 4f5d93b

Please sign in to comment.