Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
e5e324ce
Commit
e5e324ce
authored
8 years ago
by
Sarath Subramanian
Committed by
Madhan Neethiraj
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1517: updated hive_model to include schema related attributes
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
5adca841
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
002-hive_column_table_add_options.json
addons/models/patches/002-hive_column_table_add_options.json
+2
-3
release-log.txt
release-log.txt
+3
-0
QuickStartV2.java
...src/main/java/org/apache/atlas/examples/QuickStartV2.java
+4
-0
No files found.
addons/models/patches/002-hive_column_table_add_options.json
View file @
e5e324ce
...
...
@@ -6,7 +6,7 @@
"applyToVersion"
:
"1.1"
,
"updateToVersion"
:
"1.2"
,
"typeDefOptions"
:
{
"s
upportsProfile"
:
"true
"
"s
chemaAttributes"
:
"[
\"
name
\"
,
\"
description
\"
,
\"
owner
\"
,
\"
type
\"
,
\"
comment
\"
,
\"
position
\"
]
"
}
},
{
...
...
@@ -15,8 +15,7 @@
"applyToVersion"
:
"1.0"
,
"updateToVersion"
:
"1.1"
,
"typeDefOptions"
:
{
"supportsProfile"
:
"true"
,
"supportsSchema"
:
"true"
"schemaElementsAttribute"
:
"columns"
}
}
]
...
...
This diff is collapsed.
Click to expand it.
release-log.txt
View file @
e5e324ce
...
...
@@ -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 (sarath.kum4r@gmail.com 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
...
...
This diff is collapsed.
Click to expand it.
webapp/src/main/java/org/apache/atlas/examples/QuickStartV2.java
View file @
e5e324ce
...
...
@@ -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"
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment