Skip to content

Commit 2a2de82

Browse files
authored
annotate get_type with recursive (#13376)
1 parent 705dd0e commit 2a2de82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datafusion/expr/src/expr_schema.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ use datafusion_common::{
3232
TableReference,
3333
};
3434
use datafusion_functions_window_common::field::WindowUDFFieldArgs;
35+
use recursive::recursive;
3536
use std::collections::HashMap;
3637
use std::sync::Arc;
3738

@@ -99,6 +100,7 @@ impl ExprSchemable for Expr {
99100
/// expression refers to a column that does not exist in the
100101
/// schema, or when the expression is incorrectly typed
101102
/// (e.g. `[utf8] + [bool]`).
103+
#[recursive]
102104
fn get_type(&self, schema: &dyn ExprSchema) -> Result<DataType> {
103105
match self {
104106
Expr::Alias(Alias { expr, name, .. }) => match &**expr {

0 commit comments

Comments
 (0)