abhilashmandaliya opened a new issue #10440: URL: https://github.com/apache/pulsar/issues/10440
**Describe the bug** Pulsar IO Sink config parsing is using Gson to parse the user-supplied config. Gson parses numeric values to double if we parse it to Java's Object class. This can be a problem in cases where the numeric value is a Long number above [2^52](https://stackoverflow.com/a/12077794/5611068). Even there can be use cases where int should remain int after parsing. **To Reproduce** Steps to reproduce the behavior: 1. Use Java's Long.MAX_VALUE in the sink config and access it inside sink's implementation. It would be a double value where the last few digits would be different than the original value. **Expected behavior** The original type should be preserved. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org