- 
                Notifications
    
You must be signed in to change notification settings  - Fork 476
 
Open
Description
hello!I'm having a problem
I used influx version 1.X and see write point storage type:
    @SuppressWarnings("checkstyle:finalparameters")
        @Deprecated
        public Builder field(final String field, Object value) {
          if (value instanceof Number) {
            if (value instanceof Byte) {
              value = ((Byte) value).doubleValue();
            } else if (value instanceof Short) {
              value = ((Short) value).doubleValue();
            } else if (value instanceof Integer) {
              value = ((Integer) value).doubleValue();
            } else if (value instanceof Long) {
              value = ((Long) value).doubleValue();
            } else if (value instanceof BigInteger) {
              value = ((BigInteger) value).doubleValue();
            }
          }
          fields.put(field, value);
          return this;
        }
so insert data , All data will be converted to Double, InfluxDBResultMapper entity type must be Double
my dependency:
 <dependency>
            <groupId>org.influxdb</groupId>
            <artifactId>influxdb-java</artifactId>
            <version>2.22</version>
        </dependency>
I want to use Mapper to convert to an entity Is there any other way I can use other types?
Metadata
Metadata
Assignees
Labels
No labels