Jibing-Li commented on code in PR #27931:
URL: https://github.com/apache/doris/pull/27931#discussion_r1414825075


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -3065,7 +3068,13 @@ public void truncateTable(TruncateTableStmt 
truncateTableStmt) throws DdlExcepti
         } finally {
             olapTable.writeUnlock();
         }
-
+        if (truncateEntireTable) {
+            // Drop the whole table stats after truncate the entire table
+            Env.getCurrentEnv().getAnalysisManager().dropStats(olapTable);

Review Comment:
   Yes. Changed drop stats logic, will clear followers' cache while dropping 
stats.



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