ZhangHuiGui commented on code in PR #41975:
URL: https://github.com/apache/arrow/pull/41975#discussion_r1627071215


##########
cpp/src/arrow/compute/exec.cc:
##########
@@ -1049,10 +1057,22 @@ class VectorExecutor : public 
KernelExecutorImpl<VectorKernel> {
         RETURN_NOT_OK(Exec(span, listener));
       }
     } else {
-      // Kernel cannot execute chunkwise. If we have any chunked
-      // arrays, then VectorKernel::exec_chunked must be defined
-      // otherwise we raise an error
+      // Some vector kernels have a separate code path for handling
+      // chunked arrays (VectorKernel::exec_chunked), so we check if we
+      // have any chunked arrays. If we do and an exec_chunked function
+      // is defined then we call that.
+      bool have_chunked_arrays = false;

Review Comment:
   `have_chunked_arrays` only used in `kernel_->can_execute_chunkwise=false`'s 
branch.



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