houhang1005 commented on code in PR #8688: URL: https://github.com/apache/hudi/pull/8688#discussion_r1190845147
########## hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java: ########## @@ -185,7 +185,9 @@ private void checkRecordKey(Configuration conf, ResolvedSchema schema) { && FlinkOptions.RECORD_KEY_FIELD.defaultValue().equals(recordKeys[0]) && !fields.contains(recordKeys[0])) { throw new HoodieValidationException("Primary key definition is required, use either PRIMARY KEY syntax " - + "or option '" + FlinkOptions.RECORD_KEY_FIELD.key() + "' to specify."); + + "or option '" + FlinkOptions.RECORD_KEY_FIELD.key() + "' to specify. " + + "Otherwise the default primary key '" Review Comment: I think your example is more reasonable and fluent, user can get the reason completely. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org