Skip to content

Commit 0632a85

Browse files
committed
rename
1 parent e4ad5ed commit 0632a85

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

datafusion/catalog/src/table.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub trait TableProvider: Debug + Sync + Send {
164164
/// because inexact filters do not guarantee that every filtered row is
165165
/// removed, so applying the limit could lead to too few rows being available
166166
/// to return as a final result.
167-
#[deprecated(since = "50.0.0", note = "Use `scan_with_options` instead")]
167+
#[deprecated(since = "50.0.0", note = "Use `scan_with_args` instead")]
168168
async fn scan(
169169
&self,
170170
state: &dyn Session,
@@ -173,10 +173,10 @@ pub trait TableProvider: Debug + Sync + Send {
173173
limit: Option<usize>,
174174
) -> Result<Arc<dyn ExecutionPlan>>;
175175

176-
async fn scan_with_options(
176+
async fn scan_with_args(
177177
&self,
178178
state: &dyn Session,
179-
options: ScanArgs,
179+
args: ScanArgs,
180180
) -> Result<ScanResult> {
181181
let ScanArgs {
182182
preferred_ordering: _,
@@ -272,7 +272,7 @@ pub trait TableProvider: Debug + Sync + Send {
272272
/// }
273273
/// }
274274
/// ```
275-
#[deprecated(since = "50.0.0", note = "Use `scan_with_options` instead")]
275+
#[deprecated(since = "50.0.0", note = "Use `scan_with_args` instead")]
276276
fn supports_filters_pushdown(
277277
&self,
278278
filters: &[&Expr],
@@ -371,7 +371,7 @@ impl ScanArgs {
371371
pub struct ScanResult {
372372
/// The ExecutionPlan to run.
373373
plan: Arc<dyn ExecutionPlan>,
374-
// Remaining filters that were not completely evaluated during `scan_with_options()`.
374+
// Remaining filters that were not completely evaluated during `scan_with_args()`.
375375
filters: Vec<Expr>,
376376
}
377377

datafusion/core/src/datasource/listing/table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,13 +1170,13 @@ impl TableProvider for ListingTable {
11701170
.with_projection(projection.cloned())
11711171
.with_filters(Some(filters.to_vec()))
11721172
.with_limit(limit);
1173-
Ok(self.scan_with_options(state, options).await?.plan())
1173+
Ok(self.scan_with_args(state, options).await?.plan())
11741174
}
11751175

1176-
async fn scan_with_options(
1176+
async fn scan_with_args(
11771177
&self,
11781178
state: &dyn Session,
1179-
options: ScanArgs,
1179+
args: ScanArgs,
11801180
) -> Result<ScanResult> {
11811181
let projection = options.projection();
11821182
let filters = options.filters().map(|f| f.to_vec()).unwrap_or_default();

datafusion/core/src/physical_planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl DefaultPhysicalPlanner {
466466
.with_filters(Some(filters).clone())
467467
.with_preferred_ordering(preferred_ordering.clone())
468468
.with_limit(*fetch);
469-
let res = source.scan_with_options(session_state, opts).await?;
469+
let res = source.scan_with_args(session_state, opts).await?;
470470
// TODO: move FilterExec wrapping logic from filter pushdown rule to here?
471471
res.plan()
472472
}

0 commit comments

Comments
 (0)