morrySnow commented on code in PR #13218: URL: https://github.com/apache/doris/pull/13218#discussion_r990777302
########## fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsManager.java: ########## @@ -86,12 +87,12 @@ public void alterTableStatistics(AlterTableStatsStmt stmt) throws AnalysisExcept * @throws AnalysisException if table, column or partition not exist */ public void alterColumnStatistics(AlterColumnStatsStmt stmt) throws AnalysisException { - Table table = validateTableName(stmt.getTableName()); + OlapTable table = (OlapTable) validateTableName(stmt.getTableName()); Review Comment: we should do instanceof and cast when we do partition check, since not only OlapTable has statistics -- 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