[ 
https://issues.apache.org/jira/browse/KAFKA-6651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397962#comment-16397962
 ] 

huxihx commented on KAFKA-6651:
-------------------------------

Instead of throwing exceptions, we could possibly add a couple of `setters` for 
`keySchema` and `valueSchema`. 

> SchemaBuilder should not allow Arrays or Maps to be created by type()
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-6651
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6651
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>            Reporter: Jeremy Custenborder
>            Priority: Minor
>
> The following code should throw an exception because we cannot set 
> valueSchema() or keySchema() once the builder is returned. 
> {code:java}
> SchemaBuilder.type(Schema.Type.ARRAY);
> SchemaBuilder.type(Schema.Type.MAP);{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to