You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/expr/src/expr.rs
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,10 @@ pub enum Expr {
311
311
///
312
312
/// This expr has to be resolved to a list of columns before translating logical
313
313
/// plan into physical plan.
314
+
#[deprecated(
315
+
since = "46.0.0",
316
+
note = "A wildcard needs to be resolved to concrete expressions when constructing the logical plan. See https://github.com/apache/datafusion/issues/7765"
317
+
)]
314
318
Wildcard{
315
319
qualifier:Option<TableReference>,
316
320
options:Box<WildcardOptions>,
@@ -1175,6 +1179,7 @@ impl Expr {
1175
1179
Expr::ScalarVariable(..) => "ScalarVariable",
1176
1180
Expr::TryCast{ .. } => "TryCast",
1177
1181
Expr::WindowFunction{ .. } => "WindowFunction",
1182
+
#[expect(deprecated)]
1178
1183
Expr::Wildcard{ .. } => "Wildcard",
1179
1184
Expr::Unnest{ .. } => "Unnest",
1180
1185
}
@@ -1648,6 +1653,8 @@ impl Expr {
1648
1653
// Use explicit pattern match instead of a default
1649
1654
// implementation, so that in the future if someone adds
1650
1655
// new Expr types, they will check here as well
1656
+
// TODO: remove the next line after `Expr::Wildcard` is removed
1657
+
#[expect(deprecated)]
1651
1658
Expr::AggregateFunction(..)
1652
1659
| Expr::Alias(..)
1653
1660
| Expr::Between(..)
@@ -2229,6 +2236,7 @@ impl HashNode for Expr {
2229
2236
Expr::ScalarSubquery(subquery) => {
2230
2237
subquery.hash(state);
2231
2238
}
2239
+
#[expect(deprecated)]
2232
2240
Expr::Wildcard{ qualifier, options } => {
2233
2241
qualifier.hash(state);
2234
2242
options.hash(state);
@@ -2288,6 +2296,8 @@ impl Display for SchemaDisplay<'_> {
2288
2296
fnfmt(&self,f:&mutFormatter<'_>) -> fmt::Result{
2289
2297
matchself.0{
2290
2298
// The same as Display
2299
+
// TODO: remove the next line after `Expr::Wildcard` is removed
2300
+
#[expect(deprecated)]
2291
2301
Expr::Column(_)
2292
2302
| Expr::Literal(_)
2293
2303
| Expr::ScalarVariable(..)
@@ -2758,6 +2768,7 @@ impl Display for Expr {
2758
2768
write!(f,"{expr} IN ([{}])", expr_vec_fmt!(list))
2759
2769
}
2760
2770
}
2771
+
#[expect(deprecated)]
2761
2772
Expr::Wildcard{ qualifier, options } => match qualifier {
0 commit comments