Repository: hive Updated Branches: refs/heads/master ae008b79b -> 777d62ca8
HIVE-19404: Revise DDL Task Result Logging (Andrew Sherman, reviewed by Yongzhi Chen) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/777d62ca Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/777d62ca Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/777d62ca Branch: refs/heads/master Commit: 777d62ca8ae883c3b0f9dcedcc2bdd3e53647e35 Parents: ae008b7 Author: Yongzhi Chen <ych...@apache.org> Authored: Thu Jun 28 15:16:49 2018 -0400 Committer: Yongzhi Chen <ych...@apache.org> Committed: Thu Jun 28 15:16:49 2018 -0400 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/777d62ca/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 8438dad..b7babd6 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -2787,7 +2787,7 @@ public class DDLTask extends Task<DDLWork> implements Serializable { } else { databases = db.getAllDatabases(); } - LOG.info("results : {}", databases.size()); + LOG.info("Found {} database(s) matching the SHOW DATABASES statement.", databases.size()); // write the results in the file DataOutputStream outStream = getOutputStream(showDatabasesDesc.getResFile()); @@ -2827,7 +2827,7 @@ public class DDLTask extends Task<DDLWork> implements Serializable { LOG.debug("pattern: {}", pattern); tablesOrViews = db.getTablesByType(dbName, pattern, type); - LOG.debug("results : {}", tablesOrViews.size()); + LOG.debug("Found {} tables/view(s) matching the SHOW TABLES/VIEWS statement.", tablesOrViews.size()); // write the results in the file DataOutputStream outStream = null; @@ -2943,7 +2943,7 @@ public class DDLTask extends Task<DDLWork> implements Serializable { console.printInfo("SHOW FUNCTIONS is deprecated, please use SHOW FUNCTIONS LIKE instead."); funcs = FunctionRegistry.getFunctionNames(showFuncs.getPattern()); } - LOG.info("results : {}", funcs.size()); + LOG.info("Found {} function(s) matching the SHOW FUNCTIONS statement.", funcs.size()); } else { funcs = FunctionRegistry.getFunctionNames(); } @@ -3528,7 +3528,7 @@ public class DDLTask extends Task<DDLWork> implements Serializable { Table tbl = db.getTable(showTblStatus.getDbName(), tblName); tbls.add(tbl); } - LOG.info("results : {}", tblStr.size()); + LOG.info("Found {} table(s) matching the SHOW TABLE EXTENDED statement.", tblStr.size()); } // write the results in the file