<?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 Nifi executeSql on postgresql produce error cannot be converted to Avro type in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-executeSql-on-postgresql-produce-error-cannot-be/m-p/220211#M79486</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;When executing a select statement in executeSql processor on a posrgresql i get this error &lt;/P&gt;&lt;P&gt;Unknown SQL type 1111 cannot be converted to Avro type&lt;/P&gt;&lt;P&gt;The column causing this is a json type column, i have tried to google how to cast the json to a string put i doesn't seems to be so simple. &lt;/P&gt;&lt;P&gt;It works fine when i does it without that column &lt;/P&gt;&lt;P&gt;Does anybody know about a workaround on this. &lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 18:27:36 GMT</pubDate>
    <dc:creator>simon_jespersen</dc:creator>
    <dc:date>2018-06-12T18:27:36Z</dc:date>
    <item>
      <title>Nifi executeSql on postgresql produce error cannot be converted to Avro type</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-executeSql-on-postgresql-produce-error-cannot-be/m-p/220211#M79486</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;When executing a select statement in executeSql processor on a posrgresql i get this error &lt;/P&gt;&lt;P&gt;Unknown SQL type 1111 cannot be converted to Avro type&lt;/P&gt;&lt;P&gt;The column causing this is a json type column, i have tried to google how to cast the json to a string put i doesn't seems to be so simple. &lt;/P&gt;&lt;P&gt;It works fine when i does it without that column &lt;/P&gt;&lt;P&gt;Does anybody know about a workaround on this. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:27:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-executeSql-on-postgresql-produce-error-cannot-be/m-p/220211#M79486</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-06-12T18:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi executeSql on postgresql produce error cannot be converted to Avro type</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-executeSql-on-postgresql-produce-error-cannot-be/m-p/220212#M79487</link>
      <description>&lt;P&gt;I found the solution my self, much more simple than i first thought, just cast the json type to text and avro will accept it. &lt;/P&gt;&lt;P&gt;select cast (json column as text ) columnName  &lt;/P&gt;&lt;P&gt;from table &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:02:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-executeSql-on-postgresql-produce-error-cannot-be/m-p/220212#M79487</guid>
      <dc:creator>simon_jespersen</dc:creator>
      <dc:date>2018-06-13T19:02:50Z</dc:date>
    </item>
  </channel>
</rss>

