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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.9.0.1
    • 0.10.0.1, 0.10.1.0
    • KafkaConnect
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: