commit fa90f5d631dd1050a38a808ca65f8e01b2e5164f Author: Andrew Sherman Date: Fri Jun 22 17:03:07 2018 -0700 HIVE-19404: Revise DDL Task Result Logging diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 8438dad3473e9dae935293db282f45839117753f..b7babd623d7828b449da91a0e024f140ef7e994a 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -2787,7 +2787,7 @@ private int showDatabases(Hive db, ShowDatabasesDesc showDatabasesDesc) throws H } 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 @@ private int showTablesOrViews(Hive db, ShowTablesDesc showDesc) throws HiveExcep 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 @@ private int showFunctions(Hive db, ShowFunctionsDesc showFuncs) throws HiveExcep 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 @@ private int showTableStatus(Hive db, ShowTableStatusDesc showTblStatus) throws H 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