Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/891#discussion_r47457538
  
    --- Diff: 
tajo-core/src/main/java/org/apache/tajo/querymaster/Repartitioner.java ---
    @@ -314,12 +314,16 @@ private static void 
scheduleSymmetricRepartitionJoin(QueryMasterTask.QueryMaster
                 if (tbNameToInterm.containsKey(scanEbId)) {
                   tbNameToInterm.get(scanEbId).add(intermediateEntry);
                 } else {
    -              tbNameToInterm.put(scanEbId, 
TUtil.newList(intermediateEntry));
    +              List inputList = new ArrayList<>();
    +              inputList.addAll(Arrays.asList(intermediateEntry));
    +              tbNameToInterm.put(scanEbId, inputList);
                 }
               } else {
                 Map<ExecutionBlockId, List<IntermediateEntry>> tbNameToInterm =
                         new HashMap<>();
    -            tbNameToInterm.put(scanEbId, TUtil.newList(intermediateEntry));
    +            List inputList = new ArrayList<>();
    +            inputList.addAll(Arrays.asList(intermediateEntry));
    +            tbNameToInterm.put(scanEbId, inputList);
    --- End diff --
    
    Can be rewritten with Arrays.asList().


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to