kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-3864) Kafka Connect Struct.get returning defaultValue from Struct not the field schema
Date Mon, 20 Jun 2016 19:33:57 GMT

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

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

Github user asfgit closed the pull request at:

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


> Kafka Connect Struct.get returning defaultValue from Struct not the field schema
> --------------------------------------------------------------------------------
>
>                 Key: KAFKA-3864
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3864
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 0.9.0.1
>            Reporter: Andrew Stevenson
>            Assignee: Ewen Cheslack-Postava
>            Priority: Blocker
>             Fix For: 0.10.1.0, 0.10.0.1
>
>
>  `public Object get(Field field) {
>         Object val = values[field.index()];
>         if (val == null && schema.defaultValue() != null) {
>             val = schema.defaultValue();
>         }
>         return val;
>     }`
> Should be field.schema.defautlValue



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message