This is an automated email from the ASF dual-hosted git repository. starocean999 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new f5e3fcd43e5 [Fix](nereids) fix test test_alter_table_set_column_stats (#49107) f5e3fcd43e5 is described below commit f5e3fcd43e574247a22ed241de8e6003b00cf1d5 Author: Jensen <czjour...@163.com> AuthorDate: Mon Mar 17 09:52:10 2025 +0800 [Fix](nereids) fix test test_alter_table_set_column_stats (#49107) Problem Summary: https://github.com/apache/doris/pull/48812 has changed old stmt, we need change the new command in nereids too --- .../nereids/trees/plans/commands/AlterColumnStatsCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterColumnStatsCommand.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterColumnStatsCommand.java index 32ccf6426dd..72a950de5b6 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterColumnStatsCommand.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterColumnStatsCommand.java @@ -18,6 +18,7 @@ package org.apache.doris.nereids.trees.plans.commands; import org.apache.doris.analysis.StmtType; +import org.apache.doris.catalog.Column; import org.apache.doris.catalog.DatabaseIf; import org.apache.doris.catalog.Env; import org.apache.doris.catalog.OlapTable; @@ -27,7 +28,6 @@ import org.apache.doris.catalog.TableIf; import org.apache.doris.common.AnalysisException; import org.apache.doris.common.ErrorCode; import org.apache.doris.common.ErrorReport; -import org.apache.doris.common.FeNameFormat; import org.apache.doris.common.UserException; import org.apache.doris.datasource.CatalogIf; import org.apache.doris.mysql.privilege.PrivPredicate; @@ -177,9 +177,9 @@ public class AlterColumnStatsCommand extends AlterCommand { indexId = idxId; } - if (table.getColumn(columnName) == null) { - ErrorReport.reportAnalysisException(ErrorCode.ERR_WRONG_COLUMN_NAME, - columnName, FeNameFormat.getColumnNameRegex()); + Column column = table.getColumn(columnName); + if (column == null || !column.getName().equals(columnName)) { + ErrorReport.reportAnalysisException(ErrorCode.ERR_BAD_FIELD_ERROR, columnName, table.getName()); } if (opPartitionNamesInfo != null && table instanceof OlapTable) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org