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
cea851c5
Commit
cea851c5
authored
5 years ago
by
nixonrodrigues
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3844 - Ignore relationship attributes while fetching entities in Import Hive bridge.
Change-Id: I1d0eeb478286e896af733b51fe4f7fc62c594899
parent
3d559d01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
HiveMetaStoreBridge.java
...ava/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
+5
-7
No files found.
addons/hive-bridge/src/main/java/org/apache/atlas/hive/bridge/HiveMetaStoreBridge.java
View file @
cea851c5
...
@@ -768,7 +768,7 @@ public class HiveMetaStoreBridge {
...
@@ -768,7 +768,7 @@ public class HiveMetaStoreBridge {
String
typeName
=
HiveDataTypes
.
HIVE_DB
.
getName
();
String
typeName
=
HiveDataTypes
.
HIVE_DB
.
getName
();
return
findEntity
(
typeName
,
getDBQualifiedName
(
metadataNamespace
,
databaseName
));
return
findEntity
(
typeName
,
getDBQualifiedName
(
metadataNamespace
,
databaseName
)
,
true
,
true
);
}
}
/**
/**
...
@@ -786,7 +786,7 @@ public class HiveMetaStoreBridge {
...
@@ -786,7 +786,7 @@ public class HiveMetaStoreBridge {
String
typeName
=
HiveDataTypes
.
HIVE_TABLE
.
getName
();
String
typeName
=
HiveDataTypes
.
HIVE_TABLE
.
getName
();
String
tblQualifiedName
=
getTableQualifiedName
(
getMetadataNamespace
(),
hiveTable
.
getDbName
(),
hiveTable
.
getTableName
());
String
tblQualifiedName
=
getTableQualifiedName
(
getMetadataNamespace
(),
hiveTable
.
getDbName
(),
hiveTable
.
getTableName
());
return
findEntity
(
typeName
,
tblQualifiedName
);
return
findEntity
(
typeName
,
tblQualifiedName
,
true
,
true
);
}
}
private
AtlasEntityWithExtInfo
findProcessEntity
(
String
qualifiedName
)
throws
Exception
{
private
AtlasEntityWithExtInfo
findProcessEntity
(
String
qualifiedName
)
throws
Exception
{
...
@@ -796,14 +796,14 @@ public class HiveMetaStoreBridge {
...
@@ -796,14 +796,14 @@ public class HiveMetaStoreBridge {
String
typeName
=
HiveDataTypes
.
HIVE_PROCESS
.
getName
();
String
typeName
=
HiveDataTypes
.
HIVE_PROCESS
.
getName
();
return
findEntity
(
typeName
,
qualifiedName
);
return
findEntity
(
typeName
,
qualifiedName
,
true
,
true
);
}
}
private
AtlasEntityWithExtInfo
findEntity
(
final
String
typeName
,
final
String
qualifiedName
)
throws
AtlasServiceException
{
private
AtlasEntityWithExtInfo
findEntity
(
final
String
typeName
,
final
String
qualifiedName
,
boolean
minExtInfo
,
boolean
ignoreRelationship
)
throws
AtlasServiceException
{
AtlasEntityWithExtInfo
ret
=
null
;
AtlasEntityWithExtInfo
ret
=
null
;
try
{
try
{
ret
=
atlasClientV2
.
getEntityByAttribute
(
typeName
,
Collections
.
singletonMap
(
ATTRIBUTE_QUALIFIED_NAME
,
qualifiedName
));
ret
=
atlasClientV2
.
getEntityByAttribute
(
typeName
,
Collections
.
singletonMap
(
ATTRIBUTE_QUALIFIED_NAME
,
qualifiedName
)
,
minExtInfo
,
ignoreRelationship
);
}
catch
(
AtlasServiceException
e
)
{
}
catch
(
AtlasServiceException
e
)
{
if
(
e
.
getStatus
()
==
ClientResponse
.
Status
.
NOT_FOUND
)
{
if
(
e
.
getStatus
()
==
ClientResponse
.
Status
.
NOT_FOUND
)
{
return
null
;
return
null
;
...
@@ -812,8 +812,6 @@ public class HiveMetaStoreBridge {
...
@@ -812,8 +812,6 @@ public class HiveMetaStoreBridge {
throw
e
;
throw
e
;
}
}
clearRelationshipAttributes
(
ret
);
return
ret
;
return
ret
;
}
}
...
...
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