@@ -35,8 +35,8 @@ use datafusion::execution::context::TaskContext;
35
35
use datafusion:: physical_expr:: PhysicalSortExpr ;
36
36
use datafusion:: physical_plan:: stream:: RecordBatchStreamAdapter ;
37
37
use datafusion:: physical_plan:: {
38
- DisplayAs , DisplayFormatType , ExecutionPlan , Partitioning , SendableRecordBatchStream ,
39
- Statistics ,
38
+ DisplayAs , DisplayFormatType , ExecutionPlan , ExecutionPlanProperties , Partitioning ,
39
+ SendableRecordBatchStream , Statistics ,
40
40
} ;
41
41
use datafusion_expr:: utils:: conjunction;
42
42
use datafusion_expr:: Expr ;
@@ -156,18 +156,6 @@ impl ExecutionPlan for DatasetExec {
156
156
self . schema . clone ( )
157
157
}
158
158
159
- /// Get the output partitioning of this plan
160
- fn output_partitioning ( & self ) -> Partitioning {
161
- Python :: with_gil ( |py| {
162
- let fragments = self . fragments . as_ref ( py) ;
163
- Partitioning :: UnknownPartitioning ( fragments. len ( ) )
164
- } )
165
- }
166
-
167
- fn output_ordering ( & self ) -> Option < & [ PhysicalSortExpr ] > {
168
- None
169
- }
170
-
171
159
fn children ( & self ) -> Vec < Arc < dyn ExecutionPlan > > {
172
160
// this is a leaf node and has no children
173
161
vec ! [ ]
@@ -240,6 +228,32 @@ impl ExecutionPlan for DatasetExec {
240
228
fn statistics ( & self ) -> DFResult < Statistics > {
241
229
Ok ( self . projected_statistics . clone ( ) )
242
230
}
231
+
232
+ fn properties ( & self ) -> & datafusion:: physical_plan:: PlanProperties {
233
+ todo ! ( )
234
+ }
235
+ }
236
+
237
+ impl ExecutionPlanProperties for DatasetExec {
238
+ /// Get the output partitioning of this plan
239
+ fn output_partitioning ( & self ) -> & Partitioning {
240
+ & Python :: with_gil ( |py| {
241
+ let fragments = self . fragments . as_ref ( py) ;
242
+ Partitioning :: UnknownPartitioning ( fragments. len ( ) )
243
+ } )
244
+ }
245
+
246
+ fn output_ordering ( & self ) -> Option < & [ PhysicalSortExpr ] > {
247
+ None
248
+ }
249
+
250 + fn execution_mode ( & self ) -> datafusion:: physical_plan:: ExecutionMode {
251
+ todo ! ( )
252
+ }
253
+
254
+ fn equivalence_properties ( & self ) -> & datafusion:: physical_expr:: EquivalenceProperties {
255
+ todo ! ( )
256
+ }
243
257
}
244
258
245
259
impl DisplayAs for DatasetExec {
0 commit comments