We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b73734f commit 6fae5a0Copy full SHA for 6fae5a0
datafusion/physical-expr-common/src/physical_expr.rs
@@ -214,6 +214,21 @@ pub fn with_new_children_if_necessary(
214
}
215
216
217
+#[deprecated(since = "44.0.0")]
218
+pub fn down_cast_any_ref(any: &dyn Any) -> &dyn Any {
219
+ if any.is::<Arc<dyn PhysicalExpr>>() {
220
+ any.downcast_ref::<Arc<dyn PhysicalExpr>>()
221
+ .unwrap()
222
+ .as_any()
223
+ } else if any.is::<Box<dyn PhysicalExpr>>() {
224
+ any.downcast_ref::<Box<dyn PhysicalExpr>>()
225
226
227
+ } else {
228
+ any
229
+ }
230
+}
231
+
232
/// Returns [`Display`] able a list of [`PhysicalExpr`]
233
///
234
/// Example output: `[a + 1, b]`
0 commit comments