ruanwenjun commented on code in PR #6115: URL: https://github.com/apache/seatunnel/pull/6115#discussion_r1440542111
########## seatunnel-formats/seatunnel-format-text/src/main/java/org/apache/seatunnel/format/text/TextSerializationSchema.java: ########## @@ -134,11 +136,18 @@ private String convert(Object field, SeaTunnelDataType<?> fieldType, int level) case INT: case STRING: case BOOLEAN: - case TINYINT: case SMALLINT: case BIGINT: case DECIMAL: return field.toString(); + case TINYINT: Review Comment: Since in ST, TINYINT will store as Byte. If we use `toString` here, the Byte will be transform to Int. ``` public static String toString(byte b) { return Integer.toString((int)b, 10); } ``` This is not byte, will throw exception in deserialization. -- 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. To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org