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 <jxi...@cloudera.com> Authored: Tue Oct 27 11:57:29 2015 -0700 Committer: Jimmy Xiang <jxi...@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);