carbondata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenliang...@apache.org
Subject [12/50] [abbrv] incubator-carbondata git commit: [Bug] fix bug when high.cardinality.threshold == HIGH_CARDINALITY_THRESHOLD_MIN (#750)
Date Thu, 30 Jun 2016 17:41:59 GMT
[Bug] fix bug when high.cardinality.threshold == HIGH_CARDINALITY_THRESHOLD_MIN (#750)

[Bug] fix bug when high.cardinality.threshold == HIGH_CARDINALITY_THRESHOLD_MIN (#750)

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

Branch: refs/heads/master
Commit: 322a77bf41823d4696c4525dc94f068e23efecd0
Parents: 6049017
Author: Gin-zhj <zhujin2@huawei.com>
Authored: Sat Jun 25 18:35:15 2016 +0800
Committer: david <QiangCai@users.noreply.github.com>
Committed: Sat Jun 25 18:35:15 2016 +0800

----------------------------------------------------------------------
 .../main/java/org/carbondata/core/util/CarbonProperties.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/322a77bf/core/src/main/java/org/carbondata/core/util/CarbonProperties.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/carbondata/core/util/CarbonProperties.java b/core/src/main/java/org/carbondata/core/util/CarbonProperties.java
index e6a1ce9..c6a3a1b 100644
--- a/core/src/main/java/org/carbondata/core/util/CarbonProperties.java
+++ b/core/src/main/java/org/carbondata/core/util/CarbonProperties.java
@@ -247,12 +247,12 @@ public final class CarbonProperties {
         CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_DEFAULT);
     try {
       int highcardThreshold = Integer.parseInt(highcardThresholdStr);
-      if(highcardThreshold <= CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_MIN){
+      if(highcardThreshold < CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_MIN){
         LOGGER.info("The high cardinality threshold value \"" + highcardThresholdStr
-            + "\" is invalid. Using the default value \""
-            + CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_DEFAULT);
+            + "\" is invalid. Using the min value \""
+            + CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_MIN);
         carbonProperties.setProperty(CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD,
-            CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_DEFAULT);
+            CarbonCommonConstants.HIGH_CARDINALITY_THRESHOLD_MIN + "");
       }
     } catch (NumberFormatException e) {
       LOGGER.info("The high cardinality threshold value \"" + highcardThresholdStr


Mime
View raw message