kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject kylin git commit: KYLIN-2613 fix DimensionDesc.hashCode()
Date Sun, 14 May 2017 08:42:59 GMT
Repository: kylin
Updated Branches:
  refs/heads/master fd671d165 -> c8524efe7


KYLIN-2613 fix DimensionDesc.hashCode()


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

Branch: refs/heads/master
Commit: c8524efe7c49db6a3225ef0caa7bf900f55c2ae3
Parents: fd671d1
Author: Yang Li <liyang@apache.org>
Authored: Sun May 14 16:42:34 2017 +0800
Committer: Yang Li <liyang@apache.org>
Committed: Sun May 14 16:42:34 2017 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/kylin/cube/model/DimensionDesc.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c8524efe/core-cube/src/main/java/org/apache/kylin/cube/model/DimensionDesc.java
----------------------------------------------------------------------
diff --git a/core-cube/src/main/java/org/apache/kylin/cube/model/DimensionDesc.java b/core-cube/src/main/java/org/apache/kylin/cube/model/DimensionDesc.java
index 344b7c8..578831f 100644
--- a/core-cube/src/main/java/org/apache/kylin/cube/model/DimensionDesc.java
+++ b/core-cube/src/main/java/org/apache/kylin/cube/model/DimensionDesc.java
@@ -33,6 +33,7 @@ import com.google.common.base.Objects;
 
 /**
  */
+@SuppressWarnings("serial")
 @JsonAutoDetect(fieldVisibility = Visibility.NONE, getterVisibility = Visibility.NONE, isGetterVisibility
= Visibility.NONE, setterVisibility = Visibility.NONE)
 public class DimensionDesc implements java.io.Serializable {
 
@@ -178,7 +179,7 @@ public class DimensionDesc implements java.io.Serializable {
         final int prime = 31;
         int result = 1;
         result = prime * result + ((name == null) ? 0 : name.hashCode());
-        result = prime * result + ((column == null) ? 0 : name.hashCode());
+        result = prime * result + ((column == null) ? 0 : column.hashCode());
         result = prime * result + ((table == null) ? 0 : table.hashCode());
         result = prime * result + ((derived == null) ? 0 : derived.hashCode());
         return result;


Mime
View raw message