Skip to content

Commit

Permalink
The isNullable attribute is true when the primary key field in the Pa…
Browse files Browse the repository at this point in the history
…imon table converts the Column object. apache#7231
  • Loading branch information
hawk9821 committed Jul 18, 2024
1 parent d1b4a7f commit b2b37c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ private CatalogTable toCatalogTable(
BasicTypeDefine.<DataType>builder()
.name(dataField.name())
.comment(dataField.description())
.nativeType(dataField.type());
.nativeType(dataField.type())
.nullable(dataField.type().isNullable());
Column column = SchemaUtil.toSeaTunnelType(typeDefineBuilder.build());
builder.column(column);
});
Expand Down

0 comments on commit b2b37c4

Please sign in to comment.