vdiravka commented on a change in pull request #1397: DRILL-6633: Replace usage 
of Guava classes by JDK ones
URL: https://github.com/apache/drill/pull/1397#discussion_r211240663
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/xsort/ExternalSortBatch.java
 ##########
 @@ -586,9 +587,9 @@ public BatchGroup mergeAndSpill(LinkedList<BatchGroup> 
batchGroups) throws Schem
     c1.setRecordCount(count);
 
     String spillDir = dirs.next();
-    Path currSpillPath = new Path(Joiner.on("/").join(spillDir, fileName));
+    Path currSpillPath = new Path(spillDir + "/" + fileName);
     currSpillDirs.add(currSpillPath);
-    String outputFile = Joiner.on("/").join(currSpillPath, spillCount++);
+    String outputFile = currSpillPath+ "/" + spillCount++;
 
 Review comment:
   `String.valueOf()`, but the statement will be longer, ok, let's leave it as 
is. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to