Skip to content

Apache DataFusion SQL Query Engine

Remove Offset struct (#2734)

Andy Grovef8800a84334e
diff --git a/datafusion/core/src/logical_plan/mod.rs b/datafusion/core/src/logical_plan/mod.rs
index ea6238f408..f568c88ee7 100644
--- a/datafusion/core/src/logical_plan/mod.rs
+++ b/datafusion/core/src/logical_plan/mod.rs
@@ -46,8 +46,8 @@ pub use datafusion_expr::{
},
CreateCatalog, CreateCatalogSchema, CreateExternalTable, CreateMemoryTable,
CreateView, CrossJoin, DropTable, EmptyRelation, FileType, JoinConstraint,
- JoinType, Limit, LogicalPlan, Offset, Partitioning, PlanType, PlanVisitor,
- Repartition, StringifiedPlan, Subquery, TableScan, ToStringifiedPlan, Union,
+ JoinType, Limit, LogicalPlan, Partitioning, PlanType, PlanVisitor, Repartition,
+ StringifiedPlan, Subquery, TableScan, ToStringifiedPlan, Union,
UserDefinedLogicalNode, Values,
},
lower, lpad, ltrim, max, md5, min, not_exists, not_in_subquery, now, now_expr,
diff --git a/datafusion/core/src/logical_plan/plan.rs b/datafusion/core/src/logical_plan/plan.rs
index e841b22ee0..5c9e3d16e4 100644
--- a/datafusion/core/src/logical_plan/plan.rs
+++ b/datafusion/core/src/logical_plan/plan.rs
@@ -24,7 +24,7 @@ pub use datafusion_expr::{
Aggregate, Analyze, CreateCatalog, CreateCatalogSchema, CreateExternalTable,
CreateMemoryTable, CreateView, CrossJoin, DropTable, EmptyRelation, Explain,
Extension, FileType, Filter, Join, JoinConstraint, JoinType, Limit, LogicalPlan,
- Offset, Partitioning, PlanType, PlanVisitor, Projection, Repartition, Sort,
+ Partitioning, PlanType, PlanVisitor, Projection, Repartition, Sort,
StringifiedPlan, Subquery, SubqueryAlias, TableScan, ToStringifiedPlan, Union,
UserDefinedLogicalNode, Values, Window,
},
diff --git a/datafusion/expr/src/logical_plan/mod.rs b/datafusion/expr/src/logical_plan/mod.rs
index f3bd051e57..25700ced18 100644
--- a/datafusion/expr/src/logical_plan/mod.rs
+++ b/datafusion/expr/src/logical_plan/mod.rs
@@ -25,9 +25,8 @@ pub use plan::{
Aggregate, Analyze, CreateCatalog, CreateCatalogSchema, CreateExternalTable,
CreateMemoryTable, CreateView, CrossJoin, DropTable, EmptyRelation, Explain,
Extension, FileType, Filter, Join, JoinConstraint, JoinType, Limit, LogicalPlan,
- Offset, Partitioning, PlanType, PlanVisitor, Projection, Repartition, Sort,
- StringifiedPlan, Subquery, SubqueryAlias, TableScan, ToStringifiedPlan, Union,
- Values, Window,
+ Partitioning, PlanType, PlanVisitor, Projection, Repartition, Sort, StringifiedPlan,
+ Subquery, SubqueryAlias, TableScan, ToStringifiedPlan, Union, Values, Window,
};
pub use display::display_schema;
diff --git a/datafusion/expr/src/logical_plan/plan.rs b/datafusion/expr/src/logical_plan/plan.rs
index bb87dc7071..5b21a7ef3d 100644
--- a/datafusion/expr/src/logical_plan/plan.rs
+++ b/datafusion/expr/src/logical_plan/plan.rs
@@ -1175,15 +1175,6 @@ pub struct Limit {
pub input: Arc<LogicalPlan>,
}
-/// Adjusts the starting point at which the rest of the expressions begin to effect
-#[derive(Clone)]
-pub struct Offset {
- /// The offset
- pub offset: usize,
- /// The logical plan
- pub input: Arc<LogicalPlan>,
-}
-
/// Aggregates its input based on a set of grouping and aggregate
/// expressions (e.g. SUM).
#[derive(Clone)]