ruanwenjun commented on code in PR #6115:
URL: https://github.com/apache/seatunnel/pull/6115#discussion_r1440609355
##########
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:
This is used for compatibility with `UNSIGNED_TINYINT`, since in ST,
`UNSIGNED_TINYINT` might be transform to Short(e.g. MysqlDataTypeConvertor), so
the value here is not alway byte, and we need to transform the value into byte
if it is short, otherwise the type is incorrect and we will get 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]