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
75da0390
Commit
75da0390
authored
7 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2757: fix for NPE in Hive hook in handling column-rename on temporary table
parent
399468e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
AlterTableRenameCol.java
...rg/apache/atlas/hive/hook/events/AlterTableRenameCol.java
+10
-3
No files found.
addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/AlterTableRenameCol.java
View file @
75da0390
...
...
@@ -54,10 +54,17 @@ public class AlterTableRenameCol extends AlterTable {
return
null
;
}
List
<
HookNotification
>
ret
=
new
ArrayList
<>(
super
.
getNotificationMessages
()
);
List
<
HookNotification
>
baseMsgs
=
super
.
getNotificationMessages
(
);
Table
oldTable
=
getHiveContext
().
getInputs
().
iterator
().
next
().
getTable
();
Table
newTable
=
getHiveContext
().
getOutputs
().
iterator
().
next
().
getTable
();
if
(
CollectionUtils
.
isEmpty
(
baseMsgs
))
{
LOG
.
debug
(
"Skipped processing of column-rename (on a temporary table?)"
);
return
null
;
}
List
<
HookNotification
>
ret
=
new
ArrayList
<>(
baseMsgs
);
Table
oldTable
=
getHiveContext
().
getInputs
().
iterator
().
next
().
getTable
();
Table
newTable
=
getHiveContext
().
getOutputs
().
iterator
().
next
().
getTable
();
newTable
=
getHive
().
getTable
(
newTable
.
getDbName
(),
newTable
.
getTableName
());
...
...
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