You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ewen Cheslack-Postava (JIRA)" <ji...@apache.org> on 2016/06/20 19:33:57 UTC
[jira] [Resolved] (KAFKA-3864) Kafka Connect Struct.get returning
defaultValue from Struct not the field schema
[ https://issues.apache.org/jira/browse/KAFKA-3864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ewen Cheslack-Postava resolved KAFKA-3864.
------------------------------------------
Resolution: Fixed
Issue resolved by pull request 1528
[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)