FAQ
Repository: hive
Updated Branches:
   refs/heads/master 553374447 -> baf32e2e2


HIVE-12278: Skip logging lineage for explain queries (Jimmy, reviewed by Chaoyu)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/baf32e2e
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/baf32e2e
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/baf32e2e

Branch: refs/heads/master
Commit: baf32e2e23552fddbc8f650b4dd820304750aced
Parents: 5533744
Author: Jimmy Xiang <jxiang@cloudera.com>
Authored: Tue Oct 27 11:57:29 2015 -0700
Committer: Jimmy Xiang <jxiang@cloudera.com>
Committed: Wed Oct 28 10:55:38 2015 -0700

----------------------------------------------------------------------
  ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/baf32e2e/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
index 64220f2..1146cae 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
@@ -134,7 +134,8 @@ public class LineageLogger implements ExecuteWithHookContext {
      Index index = hookContext.getIndex();
      SessionState ss = SessionState.get();
      if (ss != null && index != null
- && OPERATION_NAMES.contains(plan.getOperationName())) {
+ && OPERATION_NAMES.contains(plan.getOperationName())
+ && !plan.isExplain()) {
        try {
          StringBuilderWriter out = new StringBuilderWriter(1024);
          JsonWriter writer = new JsonWriter(out);

Search Discussions

  • Jxiang at Oct 28, 2015 at 6:32 pm
    Repository: hive
    Updated Branches:
       refs/heads/branch-1 40b2525eb -> e075acd5a


    HIVE-12278: Skip logging lineage for explain queries (Jimmy, reviewed by Chaoyu)


    Project: http://git-wip-us.apache.org/repos/asf/hive/repo
    Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e075acd5
    Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e075acd5
    Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e075acd5

    Branch: refs/heads/branch-1
    Commit: e075acd5a5c071def350f94e2a9a73287b5f3973
    Parents: 40b2525
    Author: Jimmy Xiang <jxiang@cloudera.com>
    Authored: Tue Oct 27 11:57:29 2015 -0700
    Committer: Jimmy Xiang <jxiang@cloudera.com>
    Committed: Wed Oct 28 10:59:43 2015 -0700

    ----------------------------------------------------------------------
      ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java | 3 ++-
      1 file changed, 2 insertions(+), 1 deletion(-)
    ----------------------------------------------------------------------


    http://git-wip-us.apache.org/repos/asf/hive/blob/e075acd5/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
    ----------------------------------------------------------------------
    diff --git a/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java b/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
    index beded59..303bfdf 100644
    --- a/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
    +++ b/ql/src/java/org/apache/hadoop/hive/ql/hooks/LineageLogger.java
    @@ -134,7 +134,8 @@ public class LineageLogger implements ExecuteWithHookContext {
          Index index = hookContext.getIndex();
          SessionState ss = SessionState.get();
          if (ss != null && index != null
    - && OPERATION_NAMES.contains(plan.getOperationName())) {
    + && OPERATION_NAMES.contains(plan.getOperationName())
    + && !plan.isExplain()) {
            try {
              StringBuilderWriter out = new StringBuilderWriter(1024);
              JsonWriter writer = new JsonWriter(out);

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedOct 28, '15 at 5:56p
activeOct 28, '15 at 6:32p
posts2
users1
websitehive.apache.org

1 user in discussion

Jxiang: 2 posts

People

Translate

site design / logo © 2021 Grokbase