Skip to content

maybe I did something wrong or maybe there is regression? #74

@minnieshi

Description

@minnieshi

Main question/issue I have here is:

using 1.5.2 verrsion, reading xml file like this.

<data>
    <oneField>SomeValue</oneField>
    <anotherTagOrTag>
        <value unit="string1-I-want-to-keep">123</value>
        <value unit="string2-I-want-to-keep">456</value>
    </anotherTagOrTag>
    <lastField>1999-01-01T18:02:00</lastField>
</data>

with configuration like this

task.reader.class=io.streamthoughts.kafka.connect.filepulse.reader.XMLFileInputReader
force.array.on.fields=anotherTagOrTag

the message got read into kafka does not have the unit attribute

the payload part is like this

    "data": {
      "oneField": "SomeValue",
      "anotherTagOrTag": [
        {
          "value": [
            "123",
            "456"
          ]
        }
      ],
      "lastField": "1999-01-01T18:02:00"
    }
  }

I've also posted the question here:
https://stackoverflow.com/questions/63809219/kafka-connect-file-pulse-xml-attribute-extraction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions