From bd7cb6aa20dbe48e2dc445c3026e2d8e2ba52bda Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Sat, 1 Apr 2023 07:18:22 -0400 Subject: [PATCH] Minor: Add ticket reference as comment --- datafusion/expr/src/expr_schema.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rs index bfe464b232cd5..23125e592e66a 100644 --- a/datafusion/expr/src/expr_schema.rs +++ b/datafusion/expr/src/expr_schema.rs @@ -70,6 +70,7 @@ impl ExprSchemable for Expr { Expr::ScalarVariable(ty, _) => Ok(ty.clone()), Expr::Literal(l) => Ok(l.get_datatype()), Expr::Case(case) => { + // https://github.com/apache/arrow-datafusion/issues/5821 // when #5681 will be fixed, this code can be reverted to: // case.when_then_expr[0].1.get_type(schema) let then_types = case