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


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/StatsTask.java:
##########
@@ -124,6 +133,125 @@ public int execute() {
     return 0;
   }
 
+  /**
+   * Check for small files after ANALYZE completes
+   */
+  private void checkSmallFilesAfterAnalyze(Hive db, Table tbl) {
+    // Use the existing merge small files threshold configuration
+    long smallFilesThreshold = 
conf.getLongVar(HiveConf.ConfVars.HIVE_MERGE_MAP_FILES_AVG_SIZE);
+    List<String> smallFilesWarnings = new ArrayList<>();
+
+    // Get the console from SessionState for output
+    PrintStream console = SessionState.get().out;

Review Comment:
   we might need to check whether `SessionState.get()` is null or not



-- 
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