Repository: atlas Updated Branches: refs/heads/branch-0.8 2e28afa96 -> b6d0e4013
ATLAS-641: lineage for view/table created from a view includes underlying tables as well (cherry picked from commit 80f556a704ee21b78598e87de36777f03ebe7368) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/b6d0e401 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/b6d0e401 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/b6d0e401 Branch: refs/heads/branch-0.8 Commit: b6d0e401371c6e1586684ff2271fa6bc7c2324a8 Parents: 2e28afa Author: Madhan Neethiraj <mad...@apache.org> Authored: Fri Jun 15 18:26:16 2018 -0700 Committer: Madhan Neethiraj <mad...@apache.org> Committed: Fri Jun 22 21:32:42 2018 -0700 ---------------------------------------------------------------------- .../org/apache/atlas/hive/hook/events/CreateHiveProcess.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/b6d0e401/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateHiveProcess.java ---------------------------------------------------------------------- diff --git a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateHiveProcess.java b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateHiveProcess.java index 6989d35..f465e49 100644 --- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateHiveProcess.java +++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/events/CreateHiveProcess.java @@ -83,6 +83,10 @@ public class CreateHiveProcess extends BaseHiveEvent { AtlasEntity entity = getInputOutputEntity(input, ret); + if (!input.isDirect()) { + continue; + } + if (entity != null) { inputs.add(entity); }