Skip to content

Commit 2401a64

Browse files
committed
fix ci
1 parent c92eb94 commit 2401a64

File tree

1 file changed

+2
-4
lines changed
  • fluss-common/src/main/java/org/apache/fluss/metadata

1 file changed

+2
-4
lines changed

fluss-common/src/main/java/org/apache/fluss/metadata/Schema.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,11 @@ private static List<Column> normalizeColumns(
619619
}
620620

621621
// primary key and auto increment column should not nullable
622-
if ((pkSet.contains(column.getName())
623-
|| autoIncrementColumnNames.contains(column.getName()))
624-
&& column.getDataType().isNullable()) {
622+
if (pkSet.contains(column.getName()) && column.getDataType().isNullable()) {
625623
newColumns.add(
626624
new Column(
627625
column.getName(),
628-
column.getDataType().copy(true),
626+
column.getDataType().copy(false),
629627
column.getComment().isPresent() ? column.getComment().get() : null,
630628
column.getColumnId()));
631629
} else {

0 commit comments

Comments
 (0)