diff --git a/seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/sink/StarRocksSinkWriter.java b/seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/sink/StarRocksSinkWriter.java index ee2c6405218..a04c19e931d 100644 --- a/seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/sink/StarRocksSinkWriter.java +++ b/seatunnel-connectors-v2/connector-starrocks/src/main/java/org/apache/seatunnel/connectors/seatunnel/starrocks/sink/StarRocksSinkWriter.java @@ -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); }