kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevenson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-3864) Kafka Connect Struct.get returning defaultValue from Struct not the field schema
Date Sat, 18 Jun 2016 13:51:05 GMT
Andrew Stevenson created KAFKA-3864:
---------------------------------------

             Summary: 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


 `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