deniskuzZ commented on code in PR #5845:
URL: https://github.com/apache/hive/pull/5845#discussion_r2139186475


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/fast/VectorMapJoinFastHashTableLoader.java:
##########
@@ -148,19 +170,29 @@ public void resetBeforeOffer(HashTableElementBatch 
elementBatch) {
     }
   }
 
-  private void submitQueueDrainThreads(VectorMapJoinFastTableContainer 
vectorMapJoinFastTableContainer)
+  @VisibleForTesting
+  protected List<Future<?>> 
submitQueueDrainThreadsForTest(VectorMapJoinFastTableContainer 
vectorMapJoinFastTableContainer)
+          throws IOException, InterruptedException, SerDeException {
+    return submitQueueDrainThreads(vectorMapJoinFastTableContainer);
+  }
+
+  private List<Future<?>> 
submitQueueDrainThreads(VectorMapJoinFastTableContainer 
vectorMapJoinFastTableContainer)
       throws InterruptedException, IOException, SerDeException {
+    List<Future<?>> futures = new ArrayList<>();
     for (int partitionId = 0; partitionId < numLoadThreads; partitionId++) {
       int finalPartitionId = partitionId;
-      this.loadExecService.submit(() -> {
+      Future<?> future = this.loadExecService.submit(() -> {

Review Comment:
   lgtm



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to