Skip to content

Apache DataFusion SQL Query Engine

Minor: Add ticket reference as comment (#5822)

Andrew Lamb7b90474adf6c
diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rs
index bfe464b232..23125e592e 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