Repository: incubator-atlas Updated Branches: refs/heads/master 5adca8410 -> e5e324cee
ATLAS-1517: updated hive_model to include schema related attributes Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/e5e324ce Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/e5e324ce Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/e5e324ce Branch: refs/heads/master Commit: e5e324ceef430218b7912512dd2f76858397a425 Parents: 5adca84 Author: Sarath Subramanian <[email protected]> Authored: Wed Feb 1 18:15:41 2017 -0800 Committer: Madhan Neethiraj <[email protected]> Committed: Wed Feb 1 19:47:18 2017 -0800 ---------------------------------------------------------------------- addons/models/patches/002-hive_column_table_add_options.json | 7 +++---- release-log.txt | 3 +++ .../src/main/java/org/apache/atlas/examples/QuickStartV2.java | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e5e324ce/addons/models/patches/002-hive_column_table_add_options.json ---------------------------------------------------------------------- diff --git a/addons/models/patches/002-hive_column_table_add_options.json b/addons/models/patches/002-hive_column_table_add_options.json index 2de90b3..5f00bd2 100644 --- a/addons/models/patches/002-hive_column_table_add_options.json +++ b/addons/models/patches/002-hive_column_table_add_options.json @@ -6,7 +6,7 @@ "applyToVersion": "1.1", "updateToVersion": "1.2", "typeDefOptions": { - "supportsProfile": "true" + "schemaAttributes": "[\"name\", \"description\", \"owner\", \"type\", \"comment\", \"position\"]" } }, { @@ -15,9 +15,8 @@ "applyToVersion": "1.0", "updateToVersion": "1.1", "typeDefOptions": { - "supportsProfile": "true", - "supportsSchema": "true" + "schemaElementsAttribute": "columns" } } ] -} +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e5e324ce/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index 346d0e7..5132c6a 100644 --- a/release-log.txt +++ b/release-log.txt @@ -9,7 +9,10 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai) ALL CHANGES: +ATLAS-1517: updated hive_model to include schema related attributes ([email protected] via mneethiraj) ATLAS-1514 Remove duplicates from class array attribute when target is deleted (dkantor) +ATLAS-1509: fixed issues with deletion during updates (sumasai via mneethiraj) +ATLAS-1516: fix unit test failure in DefaultMetadataServiceTest.testSpecialCharacters() (mneethiraj) ATLAS-1513 updated AtlasEntityType with methods to get foreign-key references; added helper methods in AtlasAttribute (mneethiraj via kevalbhatt) ATLAS-1502 added configuration to restrict entity-types editable via UI (Kalyanikashikar via mneethiraj) ATLAS-1507 fixed incorrect relationship specified in hive-model http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/e5e324ce/webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java ---------------------------------------------------------------------- diff --git a/webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java b/webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java index 87e37e3..1559eb9 100755 --- a/webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java +++ b/webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java @@ -231,6 +231,8 @@ public class QuickStartV2 { AtlasTypeUtil.createOptionalAttrDefWithConstraint("table", TABLE_TYPE, CONSTRAINT_TYPE_FOREIGN_KEY, new HashMap<String, Object>() {{ put(CONSTRAINT_PARAM_ON_DELETE, CONSTRAINT_PARAM_VAL_CASCADE); }})); + colType.setOptions(new HashMap<String, String>() {{ put("schemaAttributes", "[\"name\", \"description\", \"owner\", \"type\", \"comment\", \"position\"]"); }}); + AtlasEntityDef tblType = AtlasTypeUtil.createClassTypeDef(TABLE_TYPE, TABLE_TYPE, "1.0", ImmutableSet.of("DataSet"), AtlasTypeUtil.createRequiredAttrDef("db", DATABASE_TYPE), AtlasTypeUtil.createRequiredAttrDefWithConstraint("sd", STORAGE_DESC_TYPE, CONSTRAINT_TYPE_MAPPED_FROM_REF, @@ -246,6 +248,8 @@ public class QuickStartV2 { AtlasTypeUtil.createRequiredListAttrDefWithConstraint("columns", AtlasBaseTypeDef.getArrayTypeName(COLUMN_TYPE), CONSTRAINT_TYPE_MAPPED_FROM_REF, new HashMap<String, Object>() {{ put(CONSTRAINT_PARAM_REF_ATTRIBUTE, "table"); }})); + tblType.setOptions(new HashMap<String, String>() {{ put("schemaElementsAttribute", "columns"); }}); + AtlasEntityDef procType = AtlasTypeUtil.createClassTypeDef(LOAD_PROCESS_TYPE, LOAD_PROCESS_TYPE, "1.0", ImmutableSet.of("Process"), AtlasTypeUtil.createOptionalAttrDef("userName", "string"), AtlasTypeUtil.createOptionalAttrDef("startTime", "long"),
