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
0d01f356
Commit
0d01f356
authored
Oct 11, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1210 patch file to add position attribute to hive_column type…
ATLAS-1210 patch file to add position attribute to hive_column type (sarath.kum4r@gmail.com via sumasai)
parent
d2d6ff7d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
HiveDataModelGenerator.java
...a/org/apache/atlas/hive/model/HiveDataModelGenerator.java
+1
-1
001-hive_column_add_position.json
...hive-bridge/src/patches/001-hive_column_add_position.json
+0
-0
standalone-package.xml
distro/src/main/assemblies/standalone-package.xml
+6
-0
release-log.txt
release-log.txt
+1
-0
ReservedTypesRegistrar.java
...ava/org/apache/atlas/services/ReservedTypesRegistrar.java
+4
-2
No files found.
addons/hive-bridge/src/main/java/org/apache/atlas/hive/model/HiveDataModelGenerator.java
View file @
0d01f356
...
...
@@ -229,7 +229,7 @@ public class HiveDataModelGenerator {
new
AttributeDefinition
(
POSITION
,
DataTypes
.
INT_TYPE
.
getName
(),
Multiplicity
.
OPTIONAL
,
false
,
false
,
false
,
null
)};
HierarchicalTypeDefinition
<
ClassType
>
definition
=
new
HierarchicalTypeDefinition
<>(
ClassType
.
class
,
HiveDataTypes
.
HIVE_COLUMN
.
getName
(),
null
,
new
HierarchicalTypeDefinition
<>(
ClassType
.
class
,
HiveDataTypes
.
HIVE_COLUMN
.
getName
(),
null
,
"1.1"
,
ImmutableSet
.
of
(
AtlasClient
.
DATA_SET_SUPER_TYPE
),
attributeDefinitions
);
classTypeDefinitions
.
put
(
HiveDataTypes
.
HIVE_COLUMN
.
getName
(),
definition
);
LOG
.
debug
(
"Created definition for "
+
HiveDataTypes
.
HIVE_COLUMN
.
getName
());
...
...
addons/hive-bridge/src/patches/001-hive_column_add_position.json
0 → 100644
View file @
0d01f356
distro/src/main/assemblies/standalone-package.xml
View file @
0d01f356
...
...
@@ -173,6 +173,12 @@
<directory>
../notification/target/dependency/hook
</directory>
<outputDirectory>
hook
</outputDirectory>
</fileSet>
<!-- for patches -->
<fileSet>
<directory>
../addons/hive-bridge/src/patches
</directory>
<outputDirectory>
models/patches
</outputDirectory>
</fileSet>
</fileSets>
<files>
...
...
release-log.txt
View file @
0d01f356
...
...
@@ -9,6 +9,7 @@ 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-1210 patch file to add "position" attribute to hive_column type (sarath.kum4r@gmail.com via sumasai)
ATLAS-694 Update Atlas code to use graph abstraction layer (jnhagelb via sumasai)
ATLAS-1215 Atlas UI not working in firefox due to fix in ATLAS-1199 (kevalbhatt)
ATLAS-1171 Structured, high-level public APIs - Fix JAXB issues with PList, SearchFilter (mneethiraj via sumasai)
...
...
repository/src/main/java/org/apache/atlas/services/ReservedTypesRegistrar.java
View file @
0d01f356
...
...
@@ -65,8 +65,10 @@ public class ReservedTypesRegistrar implements IBootstrapTypesRegistrar {
for
(
File
typeDefFile
:
typeDefFiles
)
{
try
{
String
typeDefJSON
=
new
String
(
Files
.
readAllBytes
(
typeDefFile
.
toPath
()),
StandardCharsets
.
UTF_8
);
registerType
(
typeSystem
,
metadataService
,
typeDefFile
.
getAbsolutePath
(),
typeDefJSON
);
if
(
typeDefFile
.
isFile
())
{
String
typeDefJSON
=
new
String
(
Files
.
readAllBytes
(
typeDefFile
.
toPath
()),
StandardCharsets
.
UTF_8
);
registerType
(
typeSystem
,
metadataService
,
typeDefFile
.
getAbsolutePath
(),
typeDefJSON
);
}
}
catch
(
IOException
e
)
{
LOG
.
error
(
"error while registering types in file "
+
typeDefFile
.
getAbsolutePath
(),
e
);
}
catch
(
AtlasException
e
)
{
...
...
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