Repository: atlas
Updated Branches:
  refs/heads/branch-0.8 3d2f65ea7 -> a269111d3


ATLAS-2159: Incorrect createTime retrieved for entity attributes in related 
entities search

(cherry picked from commit 9d01689d326f938443de715a090afe26f6df1300)


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

Branch: refs/heads/branch-0.8
Commit: 3aeba233dc512d7a7c98c1dfdba2f6b8396c5f4b
Parents: 450ac83
Author: Sarath Subramanian <ssubraman...@hortonworks.com>
Authored: Thu Sep 21 16:58:17 2017 -0700
Committer: Sarath Subramanian <ssubraman...@hortonworks.com>
Committed: Thu Sep 21 16:58:59 2017 -0700

----------------------------------------------------------------------
 .../atlas/repository/store/graph/v1/EntityGraphRetriever.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/3aeba233/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
----------------------------------------------------------------------
diff --git 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
index 83c9c2b..abb0a56 100644
--- 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/EntityGraphRetriever.java
@@ -218,7 +218,7 @@ public final class EntityGraphRetriever {
             Object name        = getVertexAttribute(entityVertex, 
entityType.getAttribute(AtlasClient.NAME));
             Object description = getVertexAttribute(entityVertex, 
entityType.getAttribute(AtlasClient.DESCRIPTION));
             Object owner       = getVertexAttribute(entityVertex, 
entityType.getAttribute(AtlasClient.OWNER));
-            Object createTime  = 
entityVertex.getProperty(Constants.TIMESTAMP_PROPERTY_KEY, Long.class);
+            Object createTime  = getVertexAttribute(entityVertex, 
entityType.getAttribute(AtlasClient.CREATE_TIME));
             Object displayText = name != null ? name : 
ret.getAttribute(AtlasClient.QUALIFIED_NAME);
 
             ret.setAttribute(AtlasClient.NAME, name);

Reply via email to