Hello:
I am using Nifi 1.11.4 and ran into an issue.
JSON Input:
{
"mac":["aabb"]
}
avro schema defined:
{
"type": "record",
"name": "generalInformation",
"namespace": "org.apache.nifi",
"fields": [
{
"name": "mac",
"type": [
"null",
"string",
{"type":"array","items": "string" }
]
}
]
}
No errors experienced when running the file through ConvertRecord. But when
using JoltTransformRecord with:
[{
"operation": "shift",
"spec": {
"*": "&"
}
}]
I receive the following:
JoltTransformRecord[id=33f13cf0-fc17-1b9f-9b11-46f210013a8a] Unable to
transform
StandardFlowFileRecord[uuid=e9905127-b2a2-444a-95bb-baa87523e59d,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1620323949487-603, container=content1,
section=603], offset=760454,
length=24],offset=0,name=e9905127-b2a2-444a-95bb-baa87523e59d,size=24] due to
org.apache.nifi.serialization.record.util.IllegalTypeConversionException:
Cannot convert value [[Ljava.lang.Object;@4e63fe90] of type CHOICE[STRING,
ARRAY[STRING]] to Map for field mac because the type is not supported: Cannot
convert value [[Ljava.lang.Object;@4e63fe90] of type CHOICE[STRING,
ARRAY[STRING]] to Map for field mac because the type is not supported
Is there a way to workaround this problem on 1.11.4? This works fine in Nifi
1.12.1.
Thanks,
Greg