kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huxihx (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-6651) SchemaBuilder should not allow Arrays or Maps to be created by type()
Date Wed, 14 Mar 2018 01:47:00 GMT

    [ 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)

Mime
View raw message