atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suma...@apache.org
Subject incubator-atlas git commit: ATLAS-246 QuickStart uses integer data type for dates, which causes data loss(dkantor via sumasai)
Date Wed, 28 Oct 2015 04:42:28 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master 143f21039 -> ad7c221d5


ATLAS-246 QuickStart uses integer data type for dates, which causes data loss(dkantor via
sumasai)


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

Branch: refs/heads/master
Commit: ad7c221d59327380d9ed296adefcf4427a6c349a
Parents: 143f210
Author: Suma Shivaprasad <sumasai.shivaprasad@gmail.com>
Authored: Wed Oct 28 10:12:16 2015 +0530
Committer: Suma Shivaprasad <sumasai.shivaprasad@gmail.com>
Committed: Wed Oct 28 10:12:16 2015 +0530

----------------------------------------------------------------------
 release-log.txt                                           |  1 +
 .../main/java/org/apache/atlas/examples/QuickStart.java   | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ad7c221d/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index 3daa7c4..d525d08 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@ ATLAS-54 Rename configs in hive hook (shwethags)
 ATLAS-3 Mixed Index creation fails with Date types (sumasai via shwethags)
 
 ALL CHANGES:
+ATLAS-246 QuickStart uses integer data type for dates, which causes data loss (dkantor via
sumasai)
 ATLAS-232 Fix the API incompatibility introduced in ATLAS-58(shwethags via sumasai)
 ATLAS-198 Atlas UI Requires Internet Access(sanjayp via sumasai)
 ATLAS-201 Rename org.apache.atlas.Main to org.apache.atlas.Atlas (rishabhbhardwaj via shwethags)

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/ad7c221d/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java
----------------------------------------------------------------------
diff --git a/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java b/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java
index 72b81cf..7b8f88c 100755
--- a/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java
+++ b/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java
@@ -103,7 +103,7 @@ public class QuickStart {
         HierarchicalTypeDefinition<ClassType> dbClsDef = TypesUtil
                 .createClassTypeDef(DATABASE_TYPE, null, attrDef("name", DataTypes.STRING_TYPE),
                         attrDef("description", DataTypes.STRING_TYPE), attrDef("locationUri",
DataTypes.STRING_TYPE),
-                        attrDef("owner", DataTypes.STRING_TYPE), attrDef("createTime", DataTypes.INT_TYPE));
+                        attrDef("owner", DataTypes.STRING_TYPE), attrDef("createTime", DataTypes.LONG_TYPE));
 
         HierarchicalTypeDefinition<ClassType> storageDescClsDef = TypesUtil
                 .createClassTypeDef(STORAGE_DESC_TYPE, null, attrDef("location", DataTypes.STRING_TYPE),
@@ -118,8 +118,8 @@ public class QuickStart {
                 .createClassTypeDef(TABLE_TYPE, ImmutableList.of("DataSet"),
                         new AttributeDefinition("db", DATABASE_TYPE, Multiplicity.REQUIRED,
false, null),
                         new AttributeDefinition("sd", STORAGE_DESC_TYPE, Multiplicity.REQUIRED,
true, null),
-                        attrDef("owner", DataTypes.STRING_TYPE), attrDef("createTime", DataTypes.INT_TYPE),
-                        attrDef("lastAccessTime", DataTypes.INT_TYPE), attrDef("retention",
DataTypes.INT_TYPE),
+                        attrDef("owner", DataTypes.STRING_TYPE), attrDef("createTime", DataTypes.LONG_TYPE),
+                        attrDef("lastAccessTime", DataTypes.LONG_TYPE), attrDef("retention",
DataTypes.LONG_TYPE),
                         attrDef("viewOriginalText", DataTypes.STRING_TYPE),
                         attrDef("viewExpandedText", DataTypes.STRING_TYPE), attrDef("tableType",
DataTypes.STRING_TYPE),
                         attrDef("temporary", DataTypes.BOOLEAN_TYPE),
@@ -128,8 +128,8 @@ public class QuickStart {
 
         HierarchicalTypeDefinition<ClassType> loadProcessClsDef = TypesUtil
                 .createClassTypeDef(LOAD_PROCESS_TYPE, ImmutableList.of("Process"),
-                        attrDef("userName", DataTypes.STRING_TYPE), attrDef("startTime",
DataTypes.INT_TYPE),
-                        attrDef("endTime", DataTypes.INT_TYPE),
+                        attrDef("userName", DataTypes.STRING_TYPE), attrDef("startTime",
DataTypes.LONG_TYPE),
+                        attrDef("endTime", DataTypes.LONG_TYPE),
                         attrDef("queryText", DataTypes.STRING_TYPE, Multiplicity.REQUIRED),
                         attrDef("queryPlan", DataTypes.STRING_TYPE, Multiplicity.REQUIRED),
                         attrDef("queryId", DataTypes.STRING_TYPE, Multiplicity.REQUIRED),


Mime
View raw message