felipecrv commented on code in PR #38093:
URL: https://github.com/apache/arrow/pull/38093#discussion_r1355606009


##########
cpp/src/arrow/acero/hash_join.cc:
##########
@@ -478,9 +478,10 @@ class HashJoinBasicImpl : public HashJoinImpl {
         ARROW_DCHECK(batch[i].is_scalar());
         if 
(!batch[i].scalar_as<arrow::internal::PrimitiveScalarBase>().is_valid) {
           if (nn_bit_vector_all_nulls->empty()) {
-            
nn_bit_vector_all_nulls->resize(bit_util::BytesForBits(batch.length));
+            nn_bit_vector_all_nulls->resize(
+                static_cast<size_t>(bit_util::BytesForBits(batch.length)));

Review Comment:
   We should consider making `BytesForBits` return `size_t`.



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