carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipes...@apache.org
Subject [23/50] [abbrv] carbondata git commit: [HOTFIX] Remove unnecessary object creation in writer
Date Tue, 09 Jan 2018 04:01:51 GMT
[HOTFIX] Remove unnecessary object creation in writer

This closes #1756


Project: http://git-wip-us.apache.org/repos/asf/carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/carbondata/commit/deabeffd
Tree: http://git-wip-us.apache.org/repos/asf/carbondata/tree/deabeffd
Diff: http://git-wip-us.apache.org/repos/asf/carbondata/diff/deabeffd

Branch: refs/heads/branch-1.3
Commit: deabeffd91584d531f577492ea49d870e44999a1
Parents: d7852ab
Author: Jacky Li <jacky.likun@huawei.com>
Authored: Wed Jan 3 22:05:04 2018 +0800
Committer: QiangCai <qiangcai@qq.com>
Committed: Thu Jan 4 16:16:34 2018 +0800

----------------------------------------------------------------------
 .../loading/steps/CarbonRowDataWriterProcessorStepImpl.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/carbondata/blob/deabeffd/processing/src/main/java/org/apache/carbondata/processing/loading/steps/CarbonRowDataWriterProcessorStepImpl.java
----------------------------------------------------------------------
diff --git a/processing/src/main/java/org/apache/carbondata/processing/loading/steps/CarbonRowDataWriterProcessorStepImpl.java
b/processing/src/main/java/org/apache/carbondata/processing/loading/steps/CarbonRowDataWriterProcessorStepImpl.java
index 34b4f3d..8b87cfc 100644
--- a/processing/src/main/java/org/apache/carbondata/processing/loading/steps/CarbonRowDataWriterProcessorStepImpl.java
+++ b/processing/src/main/java/org/apache/carbondata/processing/loading/steps/CarbonRowDataWriterProcessorStepImpl.java
@@ -112,10 +112,7 @@ public class CarbonRowDataWriterProcessorStepImpl extends AbstractDataLoadProces
       isNoDictionaryDimensionColumn =
           CarbonDataProcessorUtil.getNoDictionaryMapping(configuration.getDataFields());
       measureDataType = configuration.getMeasureDataType();
-      CarbonFactDataHandlerModel dataHandlerModel = CarbonFactDataHandlerModel
-          .createCarbonFactDataHandlerModel(configuration,
-              getStoreLocation(tableIdentifier, String.valueOf(0)), 0, 0);
-      measureCount = dataHandlerModel.getMeasureCount();
+      measureCount = configuration.getMeasureCount();
       outputLength = measureCount + (this.noDictWithComplextCount > 0 ? 1 : 0) + 1;
       CarbonTimeStatisticsFactory.getLoadStatisticsInstance()
           .recordDictionaryValue2MdkAdd2FileTime(configuration.getPartitionId(),


Mime
View raw message