Skip to content

Commit 3f2428b

Browse files
committed
chore: deprecate supports_rewrite function
1 parent 5976c50 commit 3f2428b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datafusion/optimizer/src/optimizer.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,13 @@ pub trait OptimizerRule: Debug {
8181
}
8282

8383
/// Does this rule support rewriting owned plans (rather than by reference)?
84+
#[deprecated(since = "47.0.0", note = "This method is no longer used")]
8485
fn supports_rewrite(&self) -> bool {
8586
true
8687
}
8788

8889
/// Try to rewrite `plan` to an optimized form, returning `Transformed::yes`
8990
/// if the plan was rewritten and `Transformed::no` if it was not.
90-
///
91-
/// Note: this function is only called if [`Self::supports_rewrite`] returns
92-
/// true.
9391
fn rewrite(
9492
&self,
9593
_plan: LogicalPlan,

0 commit comments

Comments
 (0)