baomingyu opened a new pull request, #12066:
URL: https://github.com/apache/inlong/pull/12066

   
   Fixes #12065 
   
   ### Modifications
   modifications like this
   ` try {
               return ((BasicFormatInfo<?>) 
fieldFormatInfo).deserialize(fieldText);
           } catch (Exception e) {
               if (failureHandler != null) {
                   failureHandler.onConvertingFieldFailure(fieldName, 
fieldText, fieldFormatInfo,
                           head, inLongMsgBody, originBody, e);
               } else {
                   LOG.warn("Could not properly deserialize the" + "text: 
{},for field:{}"
                           + ". predefinedFields = {},fields = {}, attr={}, 
originBody={}",
                           fieldText, fieldName,
                           head == null ? "" : head.getPredefinedFields(),
                           inLongMsgBody == null ? "" : 
inLongMsgBody.getFields(),
                           head == null ? "" : head.getAttributes(),
                           originBody == null ? (inLongMsgBody == null ? "" : 
new String(inLongMsgBody.getDataBytes()))
                                   : originBody,
                           e);
               }
           }`
   When defining the failureHandler, the output shall be generated through 
onConvertingFieldFailure if it is implemented; otherwise, the output shall be 
written to the log.
   


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