ZhangHuiGui commented on code in PR #40687:
URL: https://github.com/apache/arrow/pull/40687#discussion_r1533482958
##########
cpp/src/arrow/compute/exec.h:
##########
@@ -257,6 +257,10 @@ struct ARROW_EXPORT ExecBatch {
return result;
}
+ /// \brief A check for the empty ExecBatch with no output length
+ /// and function's arguments.
+ bool IsNull() const { return length == 0 && num_values() == 0; }
Review Comment:
Agree, seems `num_values() == 0` is enough.
--
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]