Skip to content

Commit d383e38

Browse files
author
gituser
committed
Merge branch 'hotfix_1.8_3.10.x_27306' into 1.8_release_3.10.x
2 parents 9db6712 + 8a3d6ef commit d383e38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/JDBCTypeConvertUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static void setField(PreparedStatement upload, int type, Object field, in
106106
break;
107107
case java.sql.Types.FLOAT:
108108
case java.sql.Types.DOUBLE:
109-
upload.setDouble(index + 1, (double) field);
109+
upload.setDouble(index + 1, Double.parseDouble(field.toString()));
110110
break;
111111
case java.sql.Types.DECIMAL:
112112
case java.sql.Types.NUMERIC:

rdb/rdb-sink/src/main/java/com/dtstack/flink/sql/sink/rdb/writer/AppendOnlyWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ public void executeUpdate(Connection connection) {
118118
} catch (SQLException e1) {
119119
throw new RuntimeException(e1);
120120
}
121-
metricOutputFormat.outDirtyRecords.inc();
122121
if (metricOutputFormat.outDirtyRecords.getCount() % DIRTYDATA_PRINT_FREQUENTY == 0 || LOG.isDebugEnabled()) {
123122
LOG.error("record insert failed ,this row is {}", row.toString());
124123
LOG.error("", e);
125124
}
125+
metricOutputFormat.outDirtyRecords.inc();
126126
}
127127
});
128128
rows.clear();

0 commit comments

Comments
 (0)