<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Default Value Error by JsonTreeReader on using InferAvroSchema generated schema in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209703#M74264</link>
    <description>&lt;P&gt;Thanks a lot Bryan! I had been pulling my hair out for days now over this.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 09:24:31 GMT</pubDate>
    <dc:creator>maloochandra</dc:creator>
    <dc:date>2018-02-06T09:24:31Z</dc:date>
    <item>
      <title>Default Value Error by JsonTreeReader on using InferAvroSchema generated schema</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209701#M74262</link>
      <description>&lt;PRE&gt;{
	"name": "userAgreement",
        "type": [
        	"null",
                "boolean"
                ],
         "default": null
}&lt;/PRE&gt;&lt;P&gt;This is the schema for one of the fields of my json data, auto-generated using InferAvroSchema processor. &lt;/P&gt;&lt;P&gt;The field 'userAgreement is an optional field, and when missing the value should be set to null. So the schema seems to be generated correctly. However, on partitioning this data using PartitionRecord processor, the JsonTreeReader throws this error.&lt;/P&gt;&lt;PRE&gt;..will route to failure: org.apache.nifi.schema.access.SchemaNotFoundException: 
java.lang.IllegalArgumentException: Cannot set the deafult value for field 'userAgreement' to [org.apache.avro.JsonProperties$Null@5d0e5e41] because this is not a valid value for Data Type [Boolean]&lt;/PRE&gt;&lt;P&gt;Any ideas what's going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209701#M74262</guid>
      <dc:creator>maloochandra</dc:creator>
      <dc:date>2018-02-05T11:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Default Value Error by JsonTreeReader on using InferAvroSchema generated schema</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209702#M74263</link>
      <description>&lt;P&gt;This should be resolved in Apache NiFi 1.4.0 and HDF 3.1...&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-4029" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-4029&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The title of the issue refers to Hortonworks Schema Registry, but it was a general problem when using a default value of null.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 22:14:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209702#M74263</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2018-02-05T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Default Value Error by JsonTreeReader on using InferAvroSchema generated schema</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209703#M74264</link>
      <description>&lt;P&gt;Thanks a lot Bryan! I had been pulling my hair out for days now over this.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 09:24:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Default-Value-Error-by-JsonTreeReader-on-using/m-p/209703#M74264</guid>
      <dc:creator>maloochandra</dc:creator>
      <dc:date>2018-02-06T09:24:31Z</dc:date>
    </item>
  </channel>
</rss>

