Saumya Upadhyay
03/22/2022, 7:11 AMCaused by: java.lang.IllegalStateException: Not one field in the RECORD schema at shaded.com.google.common.base.Preconditions.checkState
this error doesn't make sense as schema is correct and working with our messages.Mayank
Saumya Upadhyay
03/22/2022, 2:19 PM"ingestionConfig": {
"transformConfigs": [
{
"columnName": "header_json",
"transformFunction": "jsonFormat(header)"
},
{
"columnName": "dact_json",
"transformFunction": "jsonFormat(dact)"
},
{
"columnName": "ref_json",
"transformFunction": "jsonFormat(refData)"
}
}
]
Avro schema is like :
{
"fields": [
{
"name": "header",
"type": {
"fields": [
{
"name": "fid",
"type": "string"
},
{
"name": "timestamp",
"type": "long"
}
],
"name": "ABCHeader",
"type": "record"
}
},
{
"name": "status",
"type": {
"name": "NNStatus",
"namespace": "com.common",
"symbols": [
"N200_SUCCESS",
"N400_SERVER_ERR"
],
"type": "enum"
}
},
{
"name": "dact",
"type": {
"fields": [
{
"name": "lid",
"type": "string"
},
{
"name": "timestamp",
"type": "long"
}
],
"name": "DactHeader",
"type": "record"
}
},
{
"name": "defId",
"type": "string"
},
{
"name": "fixTimestamp",
"type": "long"
},
"name": "CaRecord",
"namespace": "com.mbn",
"type": "record"
}
Mayank