FrankChen021 commented on issue #12912:
URL: https://github.com/apache/druid/issues/12912#issuecomment-1220578198
If we want to fix the problem from root, I think we need to make changes to
Event interface to make the special serialization process to be unvisible to
callers.
My suggestion is as follows
```java
public interface Event {
CustomerMap toMap();
...
}
class ACustomerMap extends HashMap<String, Object> {
// a dedicated method to serialize this object into JSON string to
avoid missing type info in the final text
public String toJSONString() {
}
}
```
Since `ACustomerMap` inherits Map<String, Object>, it makes current code
where this method is called compatible with this new class.
--
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]