You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2017/09/21 23:58:32 UTC
atlas git commit: ATLAS-2159: Incorrect createTime retrieved for
entity attributes in related entities search
Repository: atlas
Updated Branches:
refs/heads/master baccd1d8d -> 9d01689d3
ATLAS-2159: Incorrect createTime retrieved for entity attributes in related entities search
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/9d01689d
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/9d01689d
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/9d01689d
Branch: refs/heads/master
Commit: 9d01689d326f938443de715a090afe26f6df1300
Parents: baccd1d
Author: Sarath Subramanian <ss...@hortonworks.com>
Authored: Thu Sep 21 16:58:17 2017 -0700
Committer: Sarath Subramanian <ss...@hortonworks.com>
Committed: Thu Sep 21 16:58:17 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/9d01689d/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 f6aa7bb..ad88c1b 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
@@ -235,7 +235,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);