hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r1416377 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java
Date Mon, 03 Dec 2012 08:33:51 GMT
Author: namit
Date: Mon Dec  3 08:33:50 2012
New Revision: 1416377

URL: http://svn.apache.org/viewvc?rev=1416377&view=rev
Log:
HIVE-3747 Provide hive operation name for hookContext
(Shreepadma Venugopalan via namit)


Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java?rev=1416377&r1=1416376&r2=1416377&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/hooks/HookContext.java Mon Dec  3 08:33:50
2012
@@ -143,4 +143,7 @@ public class HookContext {
     this.hookType = hookType;
   }
 
+  public String getOperationName() {
+    return SessionState.get().getHiveOperation().name();
+  }
 }



Mime
View raw message