-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
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
Labels
No labels