You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/09 11:39:59 UTC

[GitHub] [doris] morrySnow commented on a diff in pull request #13218: [fix](planner) Check by partition instead of bucket

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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org