haohuaijin opened a new pull request, #8477: URL: https://github.com/apache/arrow-datafusion/pull/8477
## Which issue does this PR close? Closes #8475 ## Rationale for this change In our current implementation, when `WHEN` clause is true, we will always pick the last true branch. Because when `WHEN` is true, we don't set `when_value` to false in the below code, so we always update the `current_value`. https://github.com/apache/arrow-datafusion/blob/2765fee4dd7518a4dc39244d1b495329b9771be1/datafusion/physical-expr/src/expressions/case.rs#L194-L208 ## What changes are included in this PR? ## Are these changes tested? ## Are there any user-facing changes? -- 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]
