BartMiki commented on PR #12915:
URL: https://github.com/apache/druid/pull/12915#issuecomment-1219221809

   @FrankChen021 I will update the logic to use these steps (I think it is a 
bit more elegant):
   
   > 1. If additional properties map is empty, then just return 
objectMapper.writeValueAsString(event)
   > 2. If not empty, then:
   > a) serialize event to ObjectNode using objectMapper.valueToTree(event) 
(serialize whole object in one go)
   > b) add all KV pairs from additional parameters to the ObjectNode
   > c) return serialized ObjectNode as a string
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to