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

ASF GitHub Bot commented on KAFKA-5575:
---------------------------------------

GitHub user jcustenborder opened a pull request:

    https://github.com/apache/kafka/pull/3511

    KAFKA-5575 - Add SchemaBuilder.from

    Added `SchemaBuilder.from` method which allows creating a schema builder 
prepopulated with the details from the schema. Added tests for structs, maps, 
arrays, primitives, and logical types.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jcustenborder/kafka KAFKA-5575

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/3511.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3511
    
----
commit 1acb99a6b96b50958956659c770a055c3fd4d133
Author: Jeremy Custenborder <jcustenbor...@gmail.com>
Date:   2017-07-10T05:36:38Z

    KAFKA-5575 Added `SchemaBuilder.from` method which allows creating a schema 
builder prepopulated with the details from the schema. Added tests for structs, 
maps, arrays, primitives, and logical types.

----


> SchemaBuilder should have a method to clone an existing Schema.
> ---------------------------------------------------------------
>
>                 Key: KAFKA-5575
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5575
>             Project: Kafka
>          Issue Type: Improvement
>          Components: KafkaConnect
>            Reporter: Jeremy Custenborder
>            Assignee: Jeremy Custenborder
>            Priority: Minor
>
> Now that Transformations have landed in Kafka Connect we should have an easy 
> way to do quick modifications to schemas. For example changing the name of a 
> schema shouldn't be much more than. I should be able to do more stuff like 
> this.
> {code:java}
> return SchemaBuilder.from(Schema.STRING_SCHEMA).name("MyNewName").build()
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to