dengzhhu653 commented on code in PR #5950:
URL: https://github.com/apache/hive/pull/5950#discussion_r2443658359


##########
ql/src/java/org/apache/hadoop/hive/ql/stats/BasicStatsNoJobTask.java:
##########
@@ -307,7 +330,16 @@ public void run() {
         console.printInfo("[Warning] could not update stats for " + 
partish.getSimpleName() + ".", "Failed with exception " + e.getMessage() + "\n" 
+ StringUtils.stringifyException(e));
       }
     }
+  }
 
+  public static Consumer<String> smallFilesConsoleAndWarn(Logger log) {

Review Comment:
   if this method is just for a simple message, we can just move it to the 
caller, e.g,
   ```
   .ifPresent(s -> {
         SessionState ss = SessionState.get();
         if (ss != null && ss.getConsole() != null) {
           ss.getConsole().printInfo(msg);
         } else {
            log.warn(msg);
         }
    }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to