mxm commented on code in PR #15279:
URL: https://github.com/apache/iceberg/pull/15279#discussion_r2788549088


##########
flink/v2.1/flink/src/test/java/org/apache/iceberg/flink/TestIcebergConnector.java:
##########
@@ -328,4 +351,94 @@ private String createWarehouse() {
       throw new UncheckedIOException(e);
     }
   }
+
+  @TestTemplate
+  public void testCreateDynamicIcebergSink() throws 
DatabaseAlreadyExistException {

Review Comment:
   Could we verify this test works with both the old FlinkSink and the new 
IcebergSink?



##########
flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/FlinkDynamicTableFactory.java:
##########
@@ -131,6 +140,45 @@ public String factoryIdentifier() {
     return FACTORY_IDENTIFIER;
   }
 
+  private IcebergTableSink getIcebergTableSinkWithDynamicSinkProps(
+      Context context, Configuration flinkConf, Map<String, String> 
writeProps) {
+    String dynamicRecordGeneratorImpl =
+        flinkConf.get(FlinkCreateTableOptions.DYNAMIC_RECORD_GENERATOR_IMPL);
+    Preconditions.checkNotNull(
+        dynamicRecordGeneratorImpl,
+        "%s must be specified when use-dynamic-iceberg-sink is true",
+        FlinkCreateTableOptions.DYNAMIC_RECORD_GENERATOR_IMPL.key());

Review Comment:
   Should we add a test to verify these conditions?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to