For every Topic, Lenses tracks and maintains a schema.
The Kafka Topic records consist of a
Key and a
Value and in some
Header. For Keys and Values, Lenses assigns a type format.
Lenses auto-detects and keeps a schema and data formats for each Topic. When a topic is detected for the first time, Lenses tries to identify the type for the Key and the Value as well as work out the schema.
The supported formats for Key and Value are:
To update the Schema Type and Lenses Schema the user will require the appropriate Namespace permission.
To update the Schema Types:
To update the Schema:
If schema registry for Avro types exists, Lenses communicates directly with the schema registry to get the Avro schemas.
If the type is not Avro, Lenses is trying to detect the schema for the Key and Value.
Lenses stores this schema in its
To edit the Lenses Schema:
Lenses supports custom serializers in order to support custom data formats.