diff --git a/fe/fe-core/src/main/java/com/starrocks/sql/InsertPlanner.java b/fe/fe-core/src/main/java/com/starrocks/sql/InsertPlanner.java index f6da4c10bfeec..1b63cebd16c2f 100644 --- a/fe/fe-core/src/main/java/com/starrocks/sql/InsertPlanner.java +++ b/fe/fe-core/src/main/java/com/starrocks/sql/InsertPlanner.java @@ -206,7 +206,7 @@ private void inferOutputSchemaForPartialUpdate(InsertStmt insertStmt) { legalGeneratedColumnDependencies.add(columnName); continue; } - if (column.isAutoIncrement()) { + if (column.isAutoIncrement() || column.getDefaultExpr() != null) { if (baseSchemaNames.contains(columnName)) { outputBaseSchema.add(column); }