Map support for kafka_consumer input plugin with Avro format

it’s not clear from the documentation if maps are supported and what is the output derived from them. would it be possible to have an example?

Do you have an example message?

edit: the more I look at this the more I don’t think so. I know we do arrays and now unions.

avro schema:

 {
    "namespace": "constants",
    "name": "classical",
    "type": "record",
    "version": "1",
    "fields": [
        {"name": "name", "type": "string"},
        {"name": "data", "type": "map", "items": "float"},
        {"name": "statistics_collection_time", "type": "long"}
    ]
  }

Input data example:

{
    "statistics_collection_time": 1682509200092,
    "data": {
      "x": 3,
      "y": 3.1,
      "z": 3.14,
      "h": 3.141
    },
    "name": "pi"
}

Expected output:

map,name=pi data_x=3.0,data_y=3.1,data_z=3.14,data_h=3.141 1682509200092000