<?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: Unmatched JSON keyname and table columnname in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309571#M223863</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;Thank you very much. This is what I am asking for &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I am having still the problem that the output queue of my ConvertJSONtoSQL, is fillled with the question mark "?".&lt;/P&gt;&lt;P&gt;Am I still missing something?&lt;/P&gt;&lt;P&gt;I thought it would automatically map the json field to the postgresql column and fill the VALUE statement with the values from the json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaluman_0-1610542427419.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30098i402909DCEAC41F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaluman_0-1610542427419.png" alt="kaluman_0-1610542427419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 12:57:40 GMT</pubDate>
    <dc:creator>kaluman</dc:creator>
    <dc:date>2021-01-13T12:57:40Z</dc:date>
    <item>
      <title>Unmatched JSON keyname and table columnname</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309489#M223848</link>
      <description>&lt;P&gt;I am new to NiFi, and I am trying to put some data into a postgresql database. I am trying to do it with the ConvertJSONtoSQL processor, unfortunately the JSON keyname and the columename of the table having not the same names (for example keyname = ServiceGroup and columnname = service_group).&lt;/P&gt;&lt;P&gt;How can I map the key- and the columnname, so I can store the data in the tablename.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 23:58:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309489#M223848</guid>
      <dc:creator>kaluman</dc:creator>
      <dc:date>2021-01-12T23:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unmatched JSON keyname and table columnname</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309566#M223860</link>
      <description>&lt;P&gt;To change the key names of your JSON you can transform it with JOLT.&lt;/P&gt;&lt;P&gt;The Processor name calls JoltTransformJSON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the property you can "Jolt Specification" you can insert following code, that would be change your key from ServiceGroup to service_group and afterwards you can send the flowfile to the sql processor..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "ServiceGroup": "service_group",
      "*": "&amp;amp;"
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 12:15:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309566#M223860</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2021-01-13T12:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unmatched JSON keyname and table columnname</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309571#M223863</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;&amp;nbsp;Thank you very much. This is what I am asking for &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I am having still the problem that the output queue of my ConvertJSONtoSQL, is fillled with the question mark "?".&lt;/P&gt;&lt;P&gt;Am I still missing something?&lt;/P&gt;&lt;P&gt;I thought it would automatically map the json field to the postgresql column and fill the VALUE statement with the values from the json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaluman_0-1610542427419.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/30098i402909DCEAC41F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kaluman_0-1610542427419.png" alt="kaluman_0-1610542427419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 12:57:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309571#M223863</guid>
      <dc:creator>kaluman</dc:creator>
      <dc:date>2021-01-13T12:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unmatched JSON keyname and table columnname</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309577#M223865</link>
      <description>&lt;P&gt;You can use the "PutSQL" Processor to read your content of the sql output and it will be stored in your database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or maybe instead of ConvertJsonToSQL, you can try it directly with "PutDatabaseRecord" Processor&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 14:09:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309577#M223865</guid>
      <dc:creator>Faerballert</dc:creator>
      <dc:date>2021-01-13T14:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unmatched JSON keyname and table columnname</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309593#M223870</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68571"&gt;@Faerballert&lt;/a&gt;Thanks again. It turned out that I just should ignore the question marks in the SQL statement. Everything works for now.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 15:51:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unmatched-JSON-keyname-and-table-columnname/m-p/309593#M223870</guid>
      <dc:creator>kaluman</dc:creator>
      <dc:date>2021-01-13T15:51:45Z</dc:date>
    </item>
  </channel>
</rss>

