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

    https://github.com/apache/incubator-carbondata/pull/528#discussion_r95973866
  
    --- Diff: 
processing/src/main/java/org/apache/carbondata/processing/csvreaderstep/CsvInput.java
 ---
    @@ -193,28 +195,26 @@ public boolean processRow(StepMetaInterface smi, 
StepDataInterface sdi) throws K
       }
     
       class RddScanCallable implements Callable<Void> {
    -    List<JavaRddIterator<String[]>> iterList;
    -
    -    RddScanCallable() {
    -      this.iterList = new ArrayList<JavaRddIterator<String[]>>(1000);
    -    }
    -
    -    public void addJavaRddIterator(JavaRddIterator<String[]> iter) {
    -      this.iterList.add(iter);
    -    }
    -
         @Override
         public Void call() throws Exception {
           StandardLogService.setThreadName(("PROCESS_DataFrame_PARTITIONS"),
               Thread.currentThread().getName());
           try {
             String[] values = null;
    -        for (JavaRddIterator<String[]> iter: iterList) {
    -          iter.initialize();
    -          while (iter.hasNext()) {
    -            values = iter.next();
    -            synchronized (putRowLock) {
    -              putRow(data.outputRowMeta, values);
    +        boolean hasNext = true;
    +        JavaRddIterator<String[]> iter;
    +        boolean isInitialized = false;
    +        while(hasNext) {
    --- End diff --
    
    fixed


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to