Skip to content

Commit a4b18db

Browse files
author
yanxi0227
committed
support int
1 parent 7b91b15 commit a4b18db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

redis5/redis5-sink/src/main/java/com/dtstack/flink/sql/sink/redis/RedisOutputFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public void writeRecord(Tuple2 record) throws IOException {
166166
for (int i = 0; i < fieldNames.length; i++) {
167167
StringBuilder key = new StringBuilder();
168168
key.append(tableName).append(":").append(perKey).append(":").append(fieldNames[i]);
169-
jedis.set(key.toString(), (String) row.getField(i));
169+
jedis.set(key.toString(), row.getField(i).toString());
170170
}
171171
outRecords.inc();
172172
}

0 commit comments

Comments
 (0)