AssHero opened a new pull request, #2810: URL: https://github.com/apache/arrow-datafusion/pull/2810
# Which issue does this PR close? Closes #2798 # Rationale for this change use non-null then/else expr 's data type as return data type for CaseExpr. For this query: select case when b is null then null else b end from (select a,b from (values (1,null),(2,3)) as t (a,b)) a; We use data type of else expr(b) as return data type. For this query: select case when b is null then null when b >= 3 then b + 1 else b end from (select a,b from (values (1,null),(2,3)) as t (a,b)) a; We use data type of then expr(b + 1 ) as return data type. # What changes are included in this PR? modify data_type function of CaseExpr in datafusion/physical-expr/src/expressions/case.rs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org