Mark McDonald created KAFKA-17029: ------------------------------------- Summary: SetSchemaMetadata smt throws DataException when avro schema is primitive type Key: KAFKA-17029 URL: https://issues.apache.org/jira/browse/KAFKA-17029 Project: Kafka Issue Type: Bug Reporter: Mark McDonald
The SetSchemaMetadata smt can be used to set the schema name and version on connect records. However, if the connect record is an Avro primitive type, the smt thows a DataException. The reason for this is because there is a call to the Schema [fields() method|https://kafka.apache.org/20/javadoc/org/apache/kafka/connect/data/Schema.html#fields--]. This smt should be able to handle the case when the schema is not a struct. [This is where|https://github.com/apache/kafka/blob/42058462ac9ef65e0cad4240358bbb5db9cebcd4/connect/transforms/src/main/java/org/apache/kafka/connect/transforms/SetSchemaMetadata.java#L90] the DataException is encountered. -- This message was sent by Atlassian Jira (v8.20.10#820010)