michalursa commented on a change in pull request #11350:
URL: https://github.com/apache/arrow/pull/11350#discussion_r730199563



##########
File path: cpp/src/arrow/compute/exec/hash_join.cc
##########
@@ -150,23 +154,26 @@ class HashJoinBasicImpl : public HashJoinImpl {
     int num_cols = schema_mgr_->proj_maps[side].num_cols(projection_handle);
     projected.values.resize(num_cols);
 
-    const int* to_input =
+    auto to_input =
         schema_mgr_->proj_maps[side].map(projection_handle, 
HashJoinProjection::INPUT);
     for (int icol = 0; icol < num_cols; ++icol) {
-      projected.values[icol] = batch.values[to_input[icol]];
+      projected.values[icol] = batch.values[to_input.get(icol)];
     }
 
     return encoder->EncodeAndAppend(projected);
   }
 
-  void ProbeBatch_Lookup(const RowEncoder& exec_batch_keys,
+  void ProbeBatch_Lookup(ThreadLocalState& local_state, const RowEncoder& 
exec_batch_keys,

Review comment:
       changed




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