hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject hive git commit: HIVE-18092 : Fix exception on tables handled by HBaseHandler if columnsstats are auto-gathered (Zoltan Haindrich via Ashutosh Chauhan)
Date Fri, 17 Nov 2017 23:31:22 GMT
Repository: hive
Updated Branches:
  refs/heads/master f87315a79 -> 66c013305


HIVE-18092 : Fix exception on tables handled by HBaseHandler if columnsstats are auto-gathered
(Zoltan Haindrich via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


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

Branch: refs/heads/master
Commit: 66c013305ef04dbd2ebcfe2d36a5a69597923fb2
Parents: f87315a
Author: Zoltan Haindrich <kirk@rxd.hu>
Authored: Fri Nov 17 15:30:49 2017 -0800
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Fri Nov 17 15:30:49 2017 -0800

----------------------------------------------------------------------
 hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q  | 1 +
 ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/66c01330/hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q
----------------------------------------------------------------------
diff --git a/hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q b/hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q
index ebdc63c..dd4fe0f 100644
--- a/hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q
+++ b/hbase-handler/src/test/queries/positive/hbase_handler_snapshot.q
@@ -1,3 +1,4 @@
+set hive.stats.column.autogather=true;
 SET hive.hbase.snapshot.name=src_hbase_snapshot;
 SET hive.hbase.snapshot.restoredir=/tmp;
 

http://git-wip-us.apache.org/repos/asf/hive/blob/66c01330/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
index 1de3dd7..b66817f 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
@@ -7151,6 +7151,7 @@ public class SemanticAnalyzer extends BaseSemanticAnalyzer {
     // hive.stats.autogather=true
     // and it is an insert overwrite or insert into table
     if (dest_tab != null
+        && !dest_tab.isNonNative()
         && conf.getBoolVar(ConfVars.HIVESTATSAUTOGATHER)
         && conf.getBoolVar(ConfVars.HIVESTATSCOLAUTOGATHER)
         && ColumnStatsAutoGatherContext.canRunAutogatherStats(fso)) {


Mime
View raw message