You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2020/06/26 13:00:23 UTC

[GitHub] [beam] kamilwu commented on a change in pull request #12102: [BEAM-8133] Update influx db publisher

kamilwu commented on a change in pull request #12102:
URL: https://github.com/apache/beam/pull/12102#discussion_r446168652



##########
File path: sdks/java/testing/nexmark/src/main/java/org/apache/beam/sdk/nexmark/Main.java
##########
@@ -255,7 +255,9 @@ private static String produceMeasurement(
     schemaResults.put("timestamp", timestamp);
     schemaResults.put("runner", runner);
     schemaResults.put("measurement", measurement);
-    schemaResults.put("runtimeMs", runtimeMs);
+    schemaResults.put(
+        "runtimeMs",
+        runtimeMs + "i"); // we need to add 'i' suffix since influx default type is float

Review comment:
       What about something like this?
   `
   By default, InfluxDB treats all values as floats. We need to add 'i' suffix to interpret the value as an integer.
   `




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