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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org