Skip to content
Advertisement

Tag: influxdb

InfluxDB 2 / influxdb-client-java: Long data is written but String value is read. ClassCastException occurred

InfluxDB v2.5.1 influxdb-client-java 6.7.0 Java POJO Write Read The reading statement throws InfluxException Answer First of all tag in influxdb always is string link Secondly when you get it from influx using influx-client it get it from influxdb as a String and cannot cast to Long. (because under hood java influx client uses long.class.isAssignableFrom(fieldType)) and String is not assiganble for

Advertisement