diff --git a/datafusion/core/src/optimizer/limit_push_down.rs b/datafusion/core/src/optimizer/limit_push_down.rs index edea9f40a3e13..087ac53c8c1a5 100644 --- a/datafusion/core/src/optimizer/limit_push_down.rs +++ b/datafusion/core/src/optimizer/limit_push_down.rs @@ -23,9 +23,9 @@ use crate::logical_plan::plan::Projection; use crate::logical_plan::{Limit, TableScan}; use crate::logical_plan::{LogicalPlan, Union}; use crate::optimizer::optimizer::OptimizerRule; +use datafusion_expr::logical_plan::Offset; use datafusion_expr::utils::from_plan; use std::sync::Arc; -use datafusion_expr::logical_plan::Offset; /// Optimization rule that tries pushes down LIMIT n /// where applicable to reduce the amount of scanned / processed data diff --git a/datafusion/core/src/sql/planner.rs b/datafusion/core/src/sql/planner.rs index 30844bf351585..b2dad55f26dbe 100644 --- a/datafusion/core/src/sql/planner.rs +++ b/datafusion/core/src/sql/planner.rs @@ -28,11 +28,10 @@ use crate::datasource::TableProvider; use crate::logical_plan::window_frames::{WindowFrame, WindowFrameUnits}; use crate::logical_plan::Expr::Alias; use crate::logical_plan::{ - and, col, lit, normalize_col, normalize_col_with_schemas, provider_as_source, - Column, CreateCatalog, CreateCatalogSchema, - CreateExternalTable as PlanCreateExternalTable, CreateMemoryTable, CreateView, - DFSchema, DFSchemaRef, DropTable, Expr, FileType, LogicalPlan, LogicalPlanBuilder, - Operator, PlanType, ToDFSchema, ToStringifiedPlan, + and, col, lit, normalize_col, normalize_col_with_schemas, provider_as_source, Column, + CreateCatalog, CreateCatalogSchema, CreateExternalTable as PlanCreateExternalTable, + CreateMemoryTable, CreateView, DFSchema, DFSchemaRef, DropTable, Expr, FileType, + LogicalPlan, LogicalPlanBuilder, Operator, PlanType, ToDFSchema, ToStringifiedPlan, }; use crate::prelude::JoinType; use crate::scalar::ScalarValue;