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
89f25d41
Commit
89f25d41
authored
Aug 05, 2016
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1097 Fix a potential NPE issue flagged by Coverity scan (mneethiraj via shwethags)
parent
d671b127
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
HiveHook.java
...ge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
+8
-4
release-log.txt
release-log.txt
+1
-0
No files found.
addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
View file @
89f25d41
...
...
@@ -773,10 +773,14 @@ public class HiveHook extends AtlasHook implements ExecuteWithHookContext {
SortedMap
<
WriteEntity
,
Referenceable
>
hiveOutputsMap
)
throws
HiveException
{
HiveOperation
op
=
eventContext
.
getOperation
();
if
(
isCreateOp
(
eventContext
))
{
Table
outTable
=
getEntityByType
(
sortedHiveOutputs
,
Type
.
TABLE
).
getTable
();
//refresh table
outTable
=
dgiBridge
.
hiveClient
.
getTable
(
outTable
.
getDbName
(),
outTable
.
getTableName
());
return
HiveMetaStoreBridge
.
getTableProcessQualifiedName
(
dgiBridge
.
getClusterName
(),
outTable
);
Entity
entity
=
getEntityByType
(
sortedHiveOutputs
,
Type
.
TABLE
);
if
(
entity
!=
null
)
{
Table
outTable
=
entity
.
getTable
();
//refresh table
outTable
=
dgiBridge
.
hiveClient
.
getTable
(
outTable
.
getDbName
(),
outTable
.
getTableName
());
return
HiveMetaStoreBridge
.
getTableProcessQualifiedName
(
dgiBridge
.
getClusterName
(),
outTable
);
}
}
StringBuilder
buffer
=
new
StringBuilder
(
op
.
getOperationName
());
...
...
release-log.txt
View file @
89f25d41
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1097 Fix a potential NPE issue flagged by Coverity scan (mneethiraj via shwethags)
ATLAS-1090 UI: Multi-Select Tagging. (Kalyanikashikar via kevalbhatt)
ATLAS-1092 Add Table.CreateTime to process qualified Name for all hive_process (sumasai via shwethags)
ATLAS-1096 Modify HveMetaStoreBridge.import to use getEntity instead of DSL (sumasai via shwethags)
...
...
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