alamb commented on code in PR #2810:
URL: https://github.com/apache/arrow-datafusion/pull/2810#discussion_r910506837
##########
datafusion/physical-expr/src/expressions/case.rs:
##########
@@ -117,7 +117,7 @@ impl CaseExpr {
/// [ELSE result]
/// END
fn case_when_with_expr(&self, batch: &RecordBatch) ->
Result<ColumnarValue> {
- let return_type = self.when_then_expr[0].1.data_type(&batch.schema())?;
+ let return_type = self.data_type(&*batch.schema())?;
Review Comment:
👍
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]