ZhangHuiGui commented on code in PR #41234:
URL: https://github.com/apache/arrow/pull/41234#discussion_r1605790541
##########
cpp/src/arrow/compute/util_internal.h:
##########
@@ -26,8 +26,10 @@ namespace arrow {
namespace util {
template <typename T>
-void CheckAlignment(const void* ptr) {
- ARROW_DCHECK(reinterpret_cast<uint64_t>(ptr) % sizeof(T) == 0);
+void CheckAlignment(const void* ptr, bool do_check = true) {
Review Comment:
If the columns of the RowTable are not sorted during comparing(that is
`are_cols_sorted=false`), then there is no need to check memory alignment.
--
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]