This is an automated email from the ASF dual-hosted git repository.

sarath pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new d3e3697  ATLAS-4123: Handle create/drop materialized view queries in 
hive hook
d3e3697 is described below

commit d3e36976a3d24d0ffe8f3f2ed4198423c2c3cfac
Author: sidmishra <sidmis...@cloudera.com>
AuthorDate: Tue Feb 2 16:59:21 2021 -0800

    ATLAS-4123: Handle create/drop materialized view queries in hive hook
    
    Signed-off-by: Sarath Subramanian <sar...@apache.org>
    (cherry picked from commit 0b02bd9f21eab4354b7d8479e05a38db75e5e1a0)
---
 .../hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java 
b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
index 6513234..3b0ee6e 100644
--- a/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
+++ b/addons/hive-bridge/src/main/java/org/apache/atlas/hive/hook/HiveHook.java
@@ -196,10 +196,12 @@ public class HiveHook extends AtlasHook implements 
ExecuteWithHookContext {
 
                 case DROPTABLE:
                 case DROPVIEW:
+                case DROP_MATERIALIZED_VIEW:
                     event = new DropTable(context);
                 break;
 
                 case CREATETABLE_AS_SELECT:
+                case CREATE_MATERIALIZED_VIEW:
                 case CREATEVIEW:
                 case ALTERVIEW_AS:
                 case LOAD:

Reply via email to