<?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: Nifi 1.0: ExecuteSQL having issues with UNSIGNED int column (org.apache.avro.UnresolvedUnionException) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-0-ExecuteSQL-having-issues-with-UNSIGNED-int-column/m-p/173163#M45957</link>
    <description>&lt;P&gt;This is a bug, I have filed it under &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-3076"&gt;NIFI-3076&lt;/A&gt;. Workarounds might include changing the domain_id column to be signed (which is probably not desired), or using a cast() function to convert it into a data type (long, e.g.) that will be handled better for the time being. If you use a cast() or other function, you may want a column alias to ensure the column/field name is the one you want.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2016 03:15:40 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2016-11-22T03:15:40Z</dc:date>
    <item>
      <title>Nifi 1.0: ExecuteSQL having issues with UNSIGNED int column (org.apache.avro.UnresolvedUnionException)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-0-ExecuteSQL-having-issues-with-UNSIGNED-int-column/m-p/173162#M45956</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tried using ExecuteSQL to select rows from my MySQL table:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE table_name  ( 
domain_id        mediumint(8) UNSIGNED NOT NULL,
....
run_date         timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
)&lt;/PRE&gt;&lt;P&gt;And get following error (This error is caused by domain_id column, i.e I get the error only if I include domain_id in the select query, otherwise it works just fine):&lt;/P&gt;&lt;PRE&gt;09:24:25 PST ERROR fa363402-bbc0-1802-ffff-ffff96aa31f4 &amp;lt;host&amp;gt;:9090

ExecuteSQL[id=fa363402-bbc0-1802-ffff-ffff96aa31f4] ExecuteSQL[id=fa363402-bbc0-1802-ffff-ffff96aa31f4] failed to process session due to org.apache.avro.file.DataFileWriter$AppendWriteException: org.apache.avro.UnresolvedUnionException: Not in union ["null","long"]: 141419: org.apache.avro.file.DataFileWriter$AppendWriteException: org.apache.avro.UnresolvedUnionException: Not in union ["null","long"]: 141419
&lt;/PRE&gt;&lt;P&gt;Is this a bug or I might not be using this correctly? Is there any workaround for this issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Obaid&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 01:29:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-0-ExecuteSQL-having-issues-with-UNSIGNED-int-column/m-p/173162#M45956</guid>
      <dc:creator>obaid_salikeen</dc:creator>
      <dc:date>2016-11-12T01:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi 1.0: ExecuteSQL having issues with UNSIGNED int column (org.apache.avro.UnresolvedUnionException)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-0-ExecuteSQL-having-issues-with-UNSIGNED-int-column/m-p/173163#M45957</link>
      <description>&lt;P&gt;This is a bug, I have filed it under &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-3076"&gt;NIFI-3076&lt;/A&gt;. Workarounds might include changing the domain_id column to be signed (which is probably not desired), or using a cast() function to convert it into a data type (long, e.g.) that will be handled better for the time being. If you use a cast() or other function, you may want a column alias to ensure the column/field name is the one you want.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 03:15:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-1-0-ExecuteSQL-having-issues-with-UNSIGNED-int-column/m-p/173163#M45957</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-11-22T03:15:40Z</dc:date>
    </item>
  </channel>
</rss>

