You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by an...@apache.org on 2020/10/06 15:52:27 UTC

[hive] branch master updated: HIVE-24215: Total function count is incorrect in Replication Metrics (Aasha Medhi, reviewed by Pravin Kumar Sinha)

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

anishek 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 6769a5a  HIVE-24215: Total function count is incorrect in Replication Metrics (Aasha Medhi, reviewed by Pravin Kumar Sinha)
6769a5a is described below

commit 6769a5aea515db52be077c8e6f6dea52feeb8daa
Author: Anishek Agarwal <an...@gmail.com>
AuthorDate: Tue Oct 6 21:22:11 2020 +0530

    HIVE-24215: Total function count is incorrect in Replication Metrics (Aasha Medhi, reviewed by Pravin Kumar Sinha)
---
 ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
index 597494b..5d3a004 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
@@ -859,7 +859,7 @@ public class ReplDumpTask extends Task<ReplDumpWork> implements Serializable {
                   " with first incremental dump pending : " + dbName);
         }
         int estimatedNumTables = Utils.getAllTables(hiveDb, dbName, work.replScope).size();
-        int estimatedNumFunctions = hiveDb.getAllFunctions().size();
+        int estimatedNumFunctions = hiveDb.getFunctions(dbName, "*").size();
         replLogger = new BootstrapDumpLogger(dbName, dumpRoot.toString(),
                 estimatedNumTables,
                 estimatedNumFunctions);