Hisoka-X commented on code in PR #7796:
URL: https://github.com/apache/seatunnel/pull/7796#discussion_r1792709804
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/ExcelReadStrategy.java:
##########
@@ -215,7 +215,7 @@ private Object convert(Object field, SeaTunnelDataType<?>
fieldType) {
case ARRAY:
return objectMapper.readValue((String) field,
fieldType.getTypeClass());
case STRING:
- return field;
+ return String.valueOf(field);
Review Comment:
Thanks @CosmosNi , please add test case in
https://github.com/apache/seatunnel/tree/c685c5c71dd29618859e2f52fe552333b00729e8/seatunnel-connectors-v2/connector-file/connector-file-base/src/test/java/org/apache/seatunnel/connectors/seatunnel/file/writer
--
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]