wuchong commented on a change in pull request #9236: [FLINK-13283][jdbc] Fix
JDBC connectors with DataTypes.DATE/TIME/TIMESTAMP support
URL: https://github.com/apache/flink/pull/9236#discussion_r308045473
##########
File path:
flink-connectors/flink-jdbc/src/test/java/org/apache/flink/api/java/io/jdbc/JDBCUpsertOutputFormatTest.java
##########
@@ -66,6 +67,7 @@ public void testJDBCOutputFormat() throws Exception {
.build())
.setFieldNames(fieldNames)
.setKeyFields(keyFields)
+ .setFieldTypes(SQL_TYPES)
Review comment:
It seems that it is error-prone if we don't set a field types? If so, I
would suggest to require field types in the JDBCUpsertOutputFormat.Builder. As
it is a new introduced class, it's fine to change this.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services