Skip to content

Commit f85f66e

Browse files
committed
[fix] rename create_executor
1 parent 82d1763 commit f85f66e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

datafusion/src/datasource/file_format/avro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl FileFormat for AvroFormat {
5454
Ok(Statistics::default())
5555
}
5656

57-
async fn create_executor(
57+
async fn create_physical_plan(
5858
&self,
5959
schema: SchemaRef,
6060
files: Vec<Vec<PartitionedFile>>,
@@ -338,7 +338,7 @@ mod tests {
338338
.expect("Stats inference");
339339
let files = vec![vec![PartitionedFile { path: filename }]];
340340
let exec = format
341-
.create_executor(schema, files, stats, projection, batch_size, &[], None)
341+
.create_physical_plan(schema, files, stats, projection, batch_size, &[], None)
342342
.await?;
343343
Ok(exec)
344344
}

datafusion/src/datasource/file_format/csv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl FileFormat for CsvFormat {
7676
Ok(Statistics::default())
7777
}
7878

79-
async fn create_executor(
79+
async fn create_physical_plan(
8080
&self,
8181
schema: SchemaRef,
8282
files: Vec<Vec<PartitionedFile>>,
@@ -214,7 +214,7 @@ mod tests {
214214
.expect("Stats inference");
215215
let files = vec![vec![PartitionedFile { path: filename }]];
216216
let exec = format
217-
.create_executor(schema, files, stats, projection, batch_size, &[], None)
217+
.create_physical_plan(schema, files, stats, projection, batch_size, &[], None)
218218
.await?;
219219
Ok(exec)
220220
}

datafusion/src/datasource/file_format/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl FileFormat for JsonFormat {
7272
Ok(Statistics::default())
7373
}
7474

75-
async fn create_executor(
75+
async fn create_physical_plan(
7676
&self,
7777
schema: SchemaRef,
7878
files: Vec<Vec<PartitionedFile>>,
@@ -188,7 +188,7 @@ mod tests {
188188
path: filename.to_owned(),
189189
}]];
190190
let exec = format
191-
.create_executor(schema, files, stats, projection, batch_size, &[], None)
191+
.create_physical_plan(schema, files, stats, projection, batch_size, &[], None)
192192
.await?;
193193
Ok(exec)
194194
}

datafusion/src/datasource/file_format/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait FileFormat: Send + Sync {
5959
/// TODO group params into TableDescription(schema,files,stats) and
6060
/// ScanOptions(projection,batch_size,filters) to avoid too_many_arguments
6161
#[allow(clippy::too_many_arguments)]
62-
async fn create_executor(
62+
async fn create_physical_plan(
6363
&self,
6464
schema: SchemaRef,
6565
files: Vec<Vec<PartitionedFile>>,

datafusion/src/datasource/file_format/parquet.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl FileFormat for ParquetFormat {
6868
Ok(stats)
6969
}
7070

71-
async fn create_executor(
71+
async fn create_physical_plan(
7272
&self,
7373
schema: SchemaRef,
7474
files: Vec<Vec<PartitionedFile>>,
@@ -534,7 +534,7 @@ mod tests {
534534
.expect("Stats inference");
535535
let files = vec![vec![PartitionedFile { path: filename }]];
536536
let exec = format
537-
.create_executor(schema, files, stats, projection, batch_size, &[], None)
537+
.create_physical_plan(schema, files, stats, projection, batch_size, &[], None)
538538
.await?;
539539
Ok(exec)
540540
}

datafusion/src/datasource/listing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl TableProvider for ListingTable {
150150
// create the execution plan
151151
self.options
152152
.format
153-
.create_executor(
153+
.create_physical_plan(
154154
self.schema(),
155155
partitioned_file_lists,
156156
statistics,

0 commit comments

Comments
 (0)