You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/04/07 11:47:09 UTC

[GitHub] [pulsar] lamber-ken edited a comment on issue #6682: [hotfix] Fix flaky test in InfluxDBSinkTest

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:
users@infra.apache.org


With regards,
Apache Git Services