You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ja...@apache.org on 2024/11/13 00:55:33 UTC
(datafusion) branch main updated: annotate get_type with recursive (#13376)
This is an automated email from the ASF dual-hosted git repository.
jayzhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 2a2de82f67 annotate get_type with recursive (#13376)
2a2de82f67 is described below
commit 2a2de82f6789d2f6eee669c762c4a13704a52b12
Author: Peter Toth <pe...@gmail.com>
AuthorDate: Wed Nov 13 01:55:28 2024 +0100
annotate get_type with recursive (#13376)
---
datafusion/expr/src/expr_schema.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rs
index f0a6ed89e6..2225f457f6 100644
--- a/datafusion/expr/src/expr_schema.rs
+++ b/datafusion/expr/src/expr_schema.rs
@@ -32,6 +32,7 @@ use datafusion_common::{
TableReference,
};
use datafusion_functions_window_common::field::WindowUDFFieldArgs;
+use recursive::recursive;
use std::collections::HashMap;
use std::sync::Arc;
@@ -99,6 +100,7 @@ impl ExprSchemable for Expr {
/// expression refers to a column that does not exist in the
/// schema, or when the expression is incorrectly typed
/// (e.g. `[utf8] + [bool]`).
+ #[recursive]
fn get_type(&self, schema: &dyn ExprSchema) -> Result<DataType> {
match self {
Expr::Alias(Alias { expr, name, .. }) => match &**expr {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org