Supported Data Types in Java V2 and V3 clients

Hi InfluxData Team,

Regarding the Java client:

Does the influxdb3-java client support complex datatypes for fields, such as arrays, maps, or nested objects?

For primitive types (e.g., float, integer, timestamp, boolean, etc.), I was able to find direct support (example: for float fields, we have setFloatFields method [link]). Could you share if and how complex datatypes like arrays and maps can be added as fields?

Also, could you please confirm what all datatype support was available in the V2 client (influxdb-client-java)? From what I found, V2 only provided the addField method (with internal handling for all data types): Reference link to V2 Point.addField.

Thanks,
Ansh

1 Like

InfluxDB v2 and v3 do not currently support composite datatypes (arrays, maps, etc.). However, we do have tentative plans to add support for these datatypes in InfluxDB 3. These will likely come with a new write API and require updates to all the existing v3 clients. More information should be available in the future.

No, the influxdb3-java client currently supports only simple data types (e.g. strings, numbers, booleans) for fields — not arrays, maps, or nested objects.