carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #528: [CARBONDATA-617]Fix InsertInto test ...
Date Fri, 13 Jan 2017 06:43:05 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/528#discussion_r95944775
  
    --- 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 --
    
    please add space after while


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

Mime
View raw message