You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by kg...@apache.org on 2021/11/22 11:23:50 UTC

[hive] branch master updated: HIVE-24849: Create external table timeouts when location has large number of files (#2567) (Sungwoo Park reviewed by Steve Loughran, Zoltan Haindrich)

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

kgyrtkirk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new a814430  HIVE-24849: Create external table timeouts when location has large number of files (#2567) (Sungwoo Park reviewed by Steve Loughran, Zoltan Haindrich)
a814430 is described below

commit a81443033d31a64502219dec6e0b9b1802b865b0
Author: Sungwoo Park <gl...@gmail.com>
AuthorDate: Mon Nov 22 20:23:25 2021 +0900

    HIVE-24849: Create external table timeouts when location has large number of files (#2567) (Sungwoo Park reviewed by Steve Loughran, Zoltan Haindrich)
---
 .../org/apache/hadoop/hive/ql/ddl/table/create/CreateTableDesc.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/CreateTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/CreateTableDesc.java
index 0531aee..03ade96 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/CreateTableDesc.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/ddl/table/create/CreateTableDesc.java
@@ -927,7 +927,7 @@ public class CreateTableDesc implements DDLDesc, Serializable {
     // When replicating the statistics for a table will be obtained from the source. Do not
     // reset it on replica.
     if (replicationSpec == null || !replicationSpec.isInReplicationScope()) {
-      if (!this.isCTAS && (tbl.getPath() == null || (tbl.isEmpty() && !isExternal()))) {
+      if (!this.isCTAS && (tbl.getPath() == null || (!isExternal() && tbl.isEmpty()))) {
         if (!tbl.isPartitioned() && conf.getBoolVar(HiveConf.ConfVars.HIVESTATSAUTOGATHER)) {
           StatsSetupConst.setStatsStateForCreateTable(tbl.getTTable().getParameters(),
                   MetaStoreUtils.getColumnNames(tbl.getCols()), StatsSetupConst.TRUE);