lamber-ken edited a comment on issue #6682: [hotfix] Fix flaky test in InfluxDBSinkTest URL: https://github.com/apache/pulsar/pull/6682#issuecomment-610339489 Hi @murong00, the better way to fix this issue may is add type judgment to`GenericJsonRecord` ``` --- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/generic/GenericJsonRecord.java +++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/generic/GenericJsonRecord.java @@ -61,6 +61,8 @@ class GenericJsonRecord extends VersionedGenericRecord { return fn.asDouble(); } else if (fn.isDouble()) { return fn.asDouble(); + } else if (fn.isLong()) { + return fn.asLong(); } else { return fn.asText(); } ```
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
