Skip to content

upgrade from 2.23 to 2.25 seems to remove support for java.time.Instant #1011

@pjfanning

Description

@pjfanning

Runtime exceptions look like:

[error] Test docs.javadsl.InfluxDbSourceTest.streamRawQueryResult failed: org.influxdb.InfluxDBMapperException: Unsupported type class java.time.Instant for column time, took 0.013 sec
[error]     at org.influxdb.dto.Point$Builder.setField(Point.java:420)
[error]     at org.influxdb.dto.Point$Builder.addFieldByAttribute(Point.java:369)
[error]     at org.influxdb.dto.Point$Builder.addFieldsFromPOJO(Point.java:312)
[error]     at org.influxdb.impl.InfluxDBMapper.save(InfluxDBMapper.java:53)

Our code looks like:

InfluxDBMapper influxDBMapper = new InfluxDBMapper(influxDB);
... create instance to save and that class has a java.time.Instant field
influxDBMapper.save(data);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions