You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "ymZhao1001 (via GitHub)" <gi...@apache.org> on 2023/04/26 09:39:49 UTC

[GitHub] [incubator-paimon] ymZhao1001 commented on a diff in pull request #1031: [flink]validateMySqlConfig

ymZhao1001 commented on code in PR #1031:
URL: https://github.com/apache/incubator-paimon/pull/1031#discussion_r1177621298


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlActionUtils.java:
##########
@@ -202,4 +205,37 @@ static MySqlSource<String> buildMySqlSource(Configuration mySqlConfig) {
                 new JsonDebeziumDeserializationSchema(true, customConverterConfigs);
         return sourceBuilder.deserializer(schema).includeSchemaChanges(true).build();
     }
+
+    private static void validateMySqlConfig(Configuration mySqlConfig) {
+        checkArgument(
+                mySqlConfig.get(MySqlSourceOptions.HOSTNAME) != null

Review Comment:
   remove the check whether it is empty



-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org