[ 
https://issues.apache.org/jira/browse/NIFI-8077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-8077.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> 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
>            Priority: Major
>
> 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.20.10#820010)

Reply via email to