<?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 BigQuery schema issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/BigQuery-schema-issue/m-p/280947#M209064</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am using the nifi processor&amp;nbsp;&lt;SPAN&gt;PutBigQueryBatch to put data into a Google Cloud BigQuery table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I am getting the below error with regards to the schema I have defined in the properties&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BigQuery Schema Error.PNG" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24990i7555AFFA226E9530/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BigQuery Schema Error.PNG" alt="BigQuery Schema Error.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below is the schema definition I have in the properties of the&amp;nbsp;&lt;/SPAN&gt;process&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;BR /&gt;{&lt;BR /&gt;"name": "checknumber",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Altertions",&lt;BR /&gt;"type": "RECORD",&lt;BR /&gt;"mode": "REPEATED",&lt;BR /&gt;"fields": [&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Product_Qty",&lt;BR /&gt;"type": "FLOAT",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Product_Name",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Altered_Product_Name",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Product_Code",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Altered_Product_Code",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Product_Net_Amount",&lt;BR /&gt;"type": "FLOAT",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Product_Amount",&lt;BR /&gt;"type": "FLOAT",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "dob",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "StoreId",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Order_Mode_Id",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "checkClosetime",&lt;BR /&gt;"type": "TIMESTAMP",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Revenue_Id",&lt;BR /&gt;"type": "INTEGER",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Alteration_Flag",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Revenue_Label",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "Order_Mode_Label",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "StoreName",&lt;BR /&gt;"type": "STRING",&lt;BR /&gt;"mode": "NULLABLE"&lt;BR /&gt;}&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here is the definition of the table in BigQuery&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BigQuery Schema Definition.PNG" style="width: 363px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24991i80FD693476A307A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BigQuery Schema Definition.PNG" alt="BigQuery Schema Definition.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it has something to do with how I have defined the Alterations array in the properties but can't figure out what.&lt;/P&gt;&lt;P&gt;Does anyone know how to define the array correctly in the schema definition in the properties of the&amp;nbsp;&lt;SPAN&gt;PutBigQueryBatch process?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 22:44:39 GMT</pubDate>
    <dc:creator>TimManger</dc:creator>
    <dc:date>2019-10-21T22:44:39Z</dc:date>
  </channel>
</rss>

