@@ -100,7 +100,7 @@ pub struct Window {
100
100
101
101
/// Produces rows from a table provider by reference or from the context
102
102
#[ derive( Clone ) ]
103
- pub struct TableScanPlan {
103
+ pub struct TableScan {
104
104
/// The name of the table
105
105
pub table_name : String ,
106
106
/// The source of the table
@@ -184,7 +184,7 @@ pub struct DropTable {
184
184
/// Produces a relation with string representations of
185
185
/// various parts of the plan
186
186
#[ derive( Clone ) ]
187
- pub struct ExplainPlan {
187
+ pub struct Explain {
188
188
/// Should extra (detailed, intermediate plans) be included?
189
189
pub verbose : bool ,
190
190
/// The logical plan that is being EXPLAIN'd
@@ -198,7 +198,7 @@ pub struct ExplainPlan {
198
198
/// Runs the actual plan, and then prints the physical plan with
199
199
/// with execution metrics.
200
200
#[ derive( Clone ) ]
201
- pub struct AnalyzePlan {
201
+ pub struct Analyze {
202
202
/// Should extra detail be included?
203
203
pub verbose : bool ,
204
204
/// The logical plan that is being EXPLAIN ANALYZE'd
@@ -209,7 +209,7 @@ pub struct AnalyzePlan {
209
209
210
210
/// Extension operator defined outside of DataFusion
211
211
#[ derive( Clone ) ]
212
- pub struct ExtensionPlan {
212
+ pub struct Extension {
213
213
/// The runtime extension operator
214
214
pub node : Arc < dyn UserDefinedLogicalNode + Send + Sync > ,
215
215
}
@@ -322,7 +322,7 @@ pub enum LogicalPlan {
322
322
/// Union multiple inputs
323
323
Union ( Union ) ,
324
324
/// Produces rows from a table provider by reference or from the context
325
- TableScan ( TableScanPlan ) ,
325
+ TableScan ( TableScan ) ,
326
326
/// Produces no rows: An empty relation with an empty schema
327
327
EmptyRelation ( EmptyRelation ) ,
328
328
/// Produces the first `n` tuples from its input and discards the rest.
@@ -339,12 +339,12 @@ pub enum LogicalPlan {
339
339
Values ( Values ) ,
340
340
/// Produces a relation with string representations of
341
341
/// various parts of the plan
342
- Explain ( ExplainPlan ) ,
342
+ Explain ( Explain ) ,
343
343
/// Runs the actual plan, and then prints the physical plan with
344
344
/// with execution metrics.
345
- Analyze ( AnalyzePlan ) ,
345
+ Analyze ( Analyze ) ,
346
346
/// Extension operator defined outside of DataFusion
347
- Extension ( ExtensionPlan ) ,
347
+ Extension ( Extension ) ,
348
348
}
349
349
350
350
impl LogicalPlan {
@@ -353,7 +353,7 @@ impl LogicalPlan {
353
353
match self {
354
354
LogicalPlan :: EmptyRelation ( EmptyRelation { schema, .. } ) => schema,
355
355
LogicalPlan :: Values ( Values { schema, .. } ) => schema,
356
- LogicalPlan :: TableScan ( TableScanPlan {
356
+ LogicalPlan :: TableScan ( TableScan {
357
357
projected_schema, ..
358
358
} ) => projected_schema,
359
359
LogicalPlan :: Projection ( Projection { schema, .. } ) => schema,
@@ -382,7 +382,7 @@ impl LogicalPlan {
382
382
/// Get a vector of references to all schemas in every node of the logical plan
383
383
pub fn all_schemas ( & self ) -> Vec < & DFSchemaRef > {
384
384
match self {
385
- LogicalPlan :: TableScan ( TableScanPlan {
385
+ LogicalPlan :: TableScan ( TableScan {
386
386
projected_schema, ..
387
387
} ) => vec ! [ projected_schema] ,
388
388
LogicalPlan :: Values ( Values { schema, .. } ) => vec ! [ schema] ,
@@ -413,8 +413,8 @@ impl LogicalPlan {
413
413
vec ! [ schema]
414
414
}
415
415
LogicalPlan :: Extension ( extension) => vec ! [ extension. node. schema( ) ] ,
416
- LogicalPlan :: Explain ( ExplainPlan { schema, .. } )
417
- | LogicalPlan :: Analyze ( AnalyzePlan { schema, .. } )
416
+ LogicalPlan :: Explain ( Explain { schema, .. } )
417
+ | LogicalPlan :: Analyze ( Analyze { schema, .. } )
418
418
| LogicalPlan :: EmptyRelation ( EmptyRelation { schema, .. } )
419
419
| LogicalPlan :: CreateExternalTable ( CreateExternalTable { schema, .. } ) => {
420
420
vec ! [ schema]
@@ -865,7 +865,7 @@ impl LogicalPlan {
865
865
write ! ( f, "Values: {}{}" , str_values. join( ", " ) , elipse)
866
866
}
867
867
868
- LogicalPlan :: TableScan ( TableScanPlan {
868
+ LogicalPlan :: TableScan ( TableScan {
869
869
ref table_name,
870
870
ref projection,
871
871
ref filters,
0 commit comments