Skip to content

Commit

Permalink
[Improve] [Connector-V2] Improve StarRocks Serialize Error Message (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X authored and EricJoy2048 committed Apr 9, 2023
1 parent 014f299 commit d805f4b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ public StarRocksSinkWriter(SinkConfig sinkConfig, SeaTunnelRowType seaTunnelRowT

@Override
public void write(SeaTunnelRow element) throws IOException {
String record = serializer.serialize(element);
String record;
try {
record = serializer.serialize(element);
} catch (Exception e) {
log.error("serialize failed. Row={}", element);
throw e;
}
manager.write(record);
}

Expand Down

0 comments on commit d805f4b

Please sign in to comment.