jackfanwan commented on code in PR #11033:
URL: https://github.com/apache/dolphinscheduler/pull/11033#discussion_r933979767


##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-email/src/main/java/org/apache/dolphinscheduler/plugin/alert/email/EmailAlertChannel.java:
##########
@@ -38,6 +46,20 @@ public AlertResult process(AlertInfo info) {
         if (null == paramsMap) {
             return new AlertResult("false", "mail params is null");
         }
+        // Converts an object type to an array type to prevent subsequent 
conversions from reporting errors
+        if (StringUtils.isNotEmpty(alert.getContent())) {

Review Comment:
   > @jackfanwan why not just handle before `getTextTypeMessage`? Because I 
found the content of the Email Table type is defferent, see 
`getTableTypeMessage`.
   
   @caishunfeng Because I see that the `toList` in the `getTableTypeMessage` 
method, if it's an object, it won't parse



-- 
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]

Reply via email to