Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3864

Kafka Connect Struct.get returning defaultValue from Struct not the field schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.1
    • Fix Version/s: 0.10.0.1, 0.10.1.0
    • Component/s: KafkaConnect
    • Labels:
      None

      Description

      `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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ewencp Ewen Cheslack-Postava
                Reporter:
                andrewstevenson Andrew Stevenson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: