I am just trying to set up a Value-Schema for a Topic in the Web interface of Confluent Control Center. I chose the Avro-format and tried the following schema:
{
"fields": [
{"name":"date",
"type":"dates",
"doc":"Date of the count"
},
{"name":"time",
"type":"timestamp-millis",
"doc":"date in ms"
},
{"name":"count",
"type":"int",
"doc":"Number of Articles"
}
],
"name": "articleCount",
"type": "record"
}
But the interface keeps on saying the input schema is invalid. I have no idea why.
Any help is appreciated!
There are issues related to datatypes.
"type":"dates"
=>"type": "string"
"type":"timestamp-millis"
=>"type": {"type": "long", "logicalType": "timestamp-millis"}
Updated schema will be like:
Sample Payload:
More reference related to Avro datatypes can be found here: