This is an automated email from the ASF dual-hosted git repository.

madhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit af203374232bc1ba6f7c42731619416b40b1db1c
Author: Le Ma <[email protected]>
AuthorDate: Wed Nov 27 15:43:34 2019 -0800

    ATLAS-3541: updated datatype for system attributes, timestamp and 
modifiedTimestamp, from long to date
    
    Signed-off-by: Madhan Neethiraj <[email protected]>
---
 .../src/main/java/org/apache/atlas/type/AtlasClassificationType.java | 5 +++--
 intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java        | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java 
b/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
index 1b95df8..1518bbc 100644
--- a/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
+++ b/intg/src/main/java/org/apache/atlas/type/AtlasClassificationType.java
@@ -17,6 +17,7 @@
  */
 package org.apache.atlas.type;
 
+import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_DATE;
 import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_LONG;
 import static 
org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_STRING;
 import static org.apache.atlas.type.Constants.CREATED_BY_KEY;
@@ -505,8 +506,8 @@ public class AtlasClassificationType extends 
AtlasStructType {
     private static AtlasClassificationType initRootClassificationType() {
         List<AtlasAttributeDef> attributeDefs = new 
ArrayList<AtlasAttributeDef>() {{
             add(new AtlasAttributeDef(TYPE_NAME_PROPERTY_KEY, 
AtlasBaseTypeDef.ATLAS_TYPE_STRING, false, true));
-            add(new AtlasAttributeDef(TIMESTAMP_PROPERTY_KEY, ATLAS_TYPE_LONG, 
false, true));
-            add(new AtlasAttributeDef(MODIFICATION_TIMESTAMP_PROPERTY_KEY, 
ATLAS_TYPE_LONG, false, true));
+            add(new AtlasAttributeDef(TIMESTAMP_PROPERTY_KEY, ATLAS_TYPE_DATE, 
false, true));
+            add(new AtlasAttributeDef(MODIFICATION_TIMESTAMP_PROPERTY_KEY, 
ATLAS_TYPE_DATE, false, true));
             add(new AtlasAttributeDef(MODIFIED_BY_KEY, ATLAS_TYPE_STRING, 
false, true));
             add(new AtlasAttributeDef(CREATED_BY_KEY, ATLAS_TYPE_STRING, 
false, true));
             add(new AtlasAttributeDef(STATE_PROPERTY_KEY, ATLAS_TYPE_STRING, 
false, true));
diff --git a/intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java 
b/intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java
index 6665157..928ac0d 100644
--- a/intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java
+++ b/intg/src/main/java/org/apache/atlas/type/AtlasEntityType.java
@@ -17,6 +17,7 @@
  */
 package org.apache.atlas.type;
 
+import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_DATE;
 import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_INT;
 import static org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_LONG;
 import static 
org.apache.atlas.model.typedef.AtlasBaseTypeDef.ATLAS_TYPE_STRING;
@@ -627,8 +628,8 @@ public class AtlasEntityType extends AtlasStructType {
 
     private static AtlasEntityType initRootEntityType() {
         List<AtlasAttributeDef> attributeDefs = new 
ArrayList<AtlasAttributeDef>() {{
-            add(new AtlasAttributeDef(TIMESTAMP_PROPERTY_KEY, ATLAS_TYPE_LONG, 
false, true));
-            add(new AtlasAttributeDef(MODIFICATION_TIMESTAMP_PROPERTY_KEY, 
ATLAS_TYPE_LONG, false, true));
+            add(new AtlasAttributeDef(TIMESTAMP_PROPERTY_KEY, ATLAS_TYPE_DATE, 
false, true));
+            add(new AtlasAttributeDef(MODIFICATION_TIMESTAMP_PROPERTY_KEY, 
ATLAS_TYPE_DATE, false, true));
             add(new AtlasAttributeDef(MODIFIED_BY_KEY, ATLAS_TYPE_STRING, 
false, true));
             add(new AtlasAttributeDef(CREATED_BY_KEY, ATLAS_TYPE_STRING, 
false, true));
             add(new AtlasAttributeDef(STATE_PROPERTY_KEY, ATLAS_TYPE_STRING, 
false, true));

Reply via email to