lidavidm commented on a change in pull request #10806:
URL: https://github.com/apache/arrow/pull/10806#discussion_r691595639



##########
File path: cpp/src/arrow/compute/kernels/scalar_if_else.cc
##########
@@ -1413,6 +1417,588 @@ struct CaseWhenFunctor<NullType> {
   }
 };
 
+static Status ExecVarWidthScalarCaseWhen(KernelContext* ctx, const ExecBatch& 
batch,
+                                         Datum* out) {

Review comment:
       It's minor but 1) we use the shape of out to determine what to return 
below and 2) it fits slightly better with the rest of the APIs as they all use 
the `Status(..., Datum* out)` pattern.




-- 
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]


Reply via email to