hailin0 commented on code in PR #7608:
URL: https://github.com/apache/seatunnel/pull/7608#discussion_r1750188961
##########
seatunnel-connectors-v2/connector-iceberg/src/test/java/org/apache/seatunnel/connectors/seatunnel/iceberg/utils/SchemaUtilsTest.java:
##########
@@ -54,7 +55,10 @@ void testToIcebergSchemaWithPk() {
put(SinkConfig.TABLE_PRIMARY_KEYS.key(),
String.join(",", pks));
}
});
- Schema schema = SchemaUtils.toIcebergSchema(rowType, readonlyConfig);
+ Schema schema =
+ SchemaUtils.toIcebergSchema(
+ CatalogTableUtil.getCatalogTable("default",
rowType).getTableSchema(),
+ readonlyConfig);
Review Comment:
here
https://github.com/apache/seatunnel/pull/7608/files#diff-a4894c34fda0f4639a58aac1ea8f2939f513e64543c336d0c3acdb78f149f91dR153
this method checked
https://github.com/apache/seatunnel/pull/7608/files#diff-a4894c34fda0f4639a58aac1ea8f2939f513e64543c336d0c3acdb78f149f91dR140
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]