lidavidm commented on a change in pull request #10557: URL: https://github.com/apache/arrow/pull/10557#discussion_r663097931
########## File path: cpp/src/arrow/compute/api_scalar.h ########## @@ -589,6 +589,21 @@ ARROW_EXPORT Result<Datum> IfElse(const Datum& cond, const Datum& left, const Datum& right, ExecContext* ctx = NULLPTR); +/// \brief CaseWhen behaves like a switch/case or if-else if-else statement: for +/// each row, select the first value for which the corresponding condition is +/// true, or (if given) select the 'else' value, else emit null. Review comment: Yes, null is the same as false. -- 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