hkun0120 commented on code in PR #17283:
URL:
https://github.com/apache/dolphinscheduler/pull/17283#discussion_r2166164367
##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/ExcelUtils.java:
##########
@@ -108,7 +108,11 @@ public static void genExcelFile(String content, String
title, String xlsFilePath
if (values[j] instanceof Number) {
cell1.setCellValue(Double.parseDouble(String.valueOf(values[j])));
} else {
- cell1.setCellValue(String.valueOf(values[j]));
+ String cellValue = String.valueOf(values[j]);
+ if (cellValue.length() > 32767) {
+ cellValue = cellValue.substring(0, 32760) +
"...(truncated)";
Review Comment:
> We should split values into different cells instead of truncated it when
values length is greater than 32767.
okay,I rewrite the code. Please check it. Will it ok?
--
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]