<?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: Apache Nifi - Error on ExecuteSQL  in a table with spatial data on OracleDB in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324761#M229450</link>
    <description>&lt;P&gt;After looks better to the process, I understood what is need to persist Spatial data from a Oracle Database into a PostgreSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I can`t automate all the process due the fact the NIFI (could be a feature request!?) cannot handle GeoSpatial data, due this I had to use specific functions in my Oracle query to return the data in WKT format (which is a text format). Making possible the data serialization from NIFI, and after that I just apply some modifications over the data (to make the data complaint with the table) and everything works.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Sep 2021 08:25:13 GMT</pubDate>
    <dc:creator>GCaixeta</dc:creator>
    <dc:date>2021-09-20T08:25:13Z</dc:date>
    <item>
      <title>Apache Nifi - Error on ExecuteSQL  in a table with spatial data on OracleDB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324422#M229358</link>
      <description>&lt;P&gt;I've been trying to run an SQL that comes from a GenerateTableFetch processor, so when the SQL will be executed the following error is thrown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExecuteSQL[id=ba6f39d7-4ea4-19bd-984a-1b3176886957] Unable to execute SQL select query SELECT * FROM MY_SPATIAL_TABLE WHERE 1=1 for StandardFlowFileRecord[uuid=fafa1a55-5345-4588-b0be-9e216fc86099,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1631702321511-1, container=default, section=1], offset=688879, length=46],offset=0,name=0e20eaaa-f1a7-4ce8-8cf2-e4a7858c6adc,size=46] due to java.lang.IllegalArgumentException: createSchema: Unknown SQL type 2002 / MDSYS.SDO_GEOMETRY (table: NiFi_ExecuteSQL_Record, column: GEOM) cannot be converted to Avro type; routing to failure: java.lang.IllegalArgumentException: createSchema: Unknown SQL type 2002 / MDSYS.SDO_GEOMETRY (table: NiFi_ExecuteSQL_Record, column: GEOM) cannot be converted to Avro type
↳ causes: org.apache.nifi.processor.exception.ProcessException: java.lang.IllegalArgumentException: createSchema: Unknown SQL type 2002 / MDSYS.SDO_GEOMETRY (table: NiFi_ExecuteSQL_Record, column: GEOM) cannot be converted to Avro type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know some processor that I could use on this case (I've been trying to understand if the Geomesa could help me on that) or any other suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 14:03:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324422#M229358</guid>
      <dc:creator>GCaixeta</dc:creator>
      <dc:date>2021-09-15T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi - Error on ExecuteSQL  in a table with spatial data on OracleDB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324540#M229399</link>
      <description>&lt;P&gt;Well after some tries and research, one way that I found to fix the select is using some functions from the Oracle DB offer( read more &lt;A href="https://stackoverflow.com/questions/52646691/importing-spatial-data-from-oracle-12-to-hdfs-using-nifi" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://docs.oracle.com/database/121/SPATL/sdo_geometry-methods.htm#SPATL498" target="_self"&gt;here&lt;/A&gt;). Although this remove the automation from the process due the fact that NIFI is not able to handle with Spatial Data (Geometry type, more specifically), nevertheless I'm still looking for some other way to solve this.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 12:19:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324540#M229399</guid>
      <dc:creator>GCaixeta</dc:creator>
      <dc:date>2021-09-16T12:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Nifi - Error on ExecuteSQL  in a table with spatial data on OracleDB</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324761#M229450</link>
      <description>&lt;P&gt;After looks better to the process, I understood what is need to persist Spatial data from a Oracle Database into a PostgreSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I can`t automate all the process due the fact the NIFI (could be a feature request!?) cannot handle GeoSpatial data, due this I had to use specific functions in my Oracle query to return the data in WKT format (which is a text format). Making possible the data serialization from NIFI, and after that I just apply some modifications over the data (to make the data complaint with the table) and everything works.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 08:25:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Nifi-Error-on-ExecuteSQL-in-a-table-with-spatial-data/m-p/324761#M229450</guid>
      <dc:creator>GCaixeta</dc:creator>
      <dc:date>2021-09-20T08:25:13Z</dc:date>
    </item>
  </channel>
</rss>

