hipotures created NIFI-8077:
-------------------------------
Summary: ConvertRecord Json to Avro with empty array
Key: NIFI-8077
URL: https://issues.apache.org/jira/browse/NIFI-8077
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 1.12.1
Environment: 18.04.1-Ubuntu
Reporter: hipotures
ConvertRecord processor with settings
Record Reader: JsonTreeReader (with Infer Schema)
Record Writer: AvroRecordSetWriter (with Embed Avro Schema)
Error:
{noformat}
PutBigQueryBatch[id=dc0f47e9-0175-1000-f086-85c2c62eea10] Provided Schema does
not match Table nfz_agreements.agreement. Field plans has changed type from
RECORD to STRING{noformat}
First source JSON (part):
{noformat}
(...)
"plans":[
{
"id":"8abb0ba3-f0e5-4720-70d3-bfef74c16932",
"type":"agreement-plan",
"attributes":{
"product_code":"02.0000.078.02",
"product_name":"BADANIA ENDOSKOPOWE PRZEWODU POKARMOWEGO - GASTROSKOPIA",
"order":1,
"unit_count":167430.0,
"price":155709.9,
"avg_price":0.93
},
"links":{
"related":"https://api.nfz.gov.pl/app-umw-api/plans/8abb0ba3-f0e5-4720-70d3-bfef74c16932?format=json"
}
}
],
(...){noformat}
Second source JSON (part):
{noformat}
(...)
"plans" : [ ],
(...){noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)