<?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: Oracle + NiFi =&amp;gt; all fields converted to String in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/141562#M52254</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15563/bartmaes.html" nodeid="15563"&gt;@Bart Maes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able to see the same behavior, with Oracle Amazon RDS and Oracle jdbc-drivers-12c.&lt;/P&gt;&lt;P&gt;As for Numeric columns, I think there're few problems ATM:&lt;/P&gt;&lt;P&gt;1. Oracle uses NUMBER even if the column is defined with INT [1] (This is not a driver side issue, I guess.)&lt;/P&gt;&lt;P&gt;2. JDBC driver maps Number to BigDecimal&lt;/P&gt;&lt;P&gt;3. NiFi implementation maps BigDecimal to String, since at that time, Avro didn't support BigDecimal mapping until Avro 1.8.1. Current NiFi uses Avro 1.7.7. With Avro 1.8.1, we can utilize LogicalType [2] to map BigDecimal or Date more user friendly way.&lt;/P&gt;&lt;P&gt;4. There's an ongoing effort in NiFi project [3] to use LogicalType mechanism, so that those data types can be mapped with more appropriate data types.&lt;/P&gt;&lt;P&gt;Excuse me for not being able to share a workaround for current situation, but once that change has been merged to NiFi, your experience with those data types will be better. Or other folks may know other solution.&lt;/P&gt;&lt;P&gt;1. &lt;A href="http://stackoverflow.com/questions/1419109/resultsetmetadata-returning-bigdecimal-insted-of-int" target="_blank"&gt;http://stackoverflow.com/questions/1419109/resultsetmetadata-returning-bigdecimal-insted-of-int&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="http://avro.apache.org/docs/1.8.1/spec.html#Logical+Types" target="_blank"&gt;http://avro.apache.org/docs/1.8.1/spec.html#Logical+Types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. &lt;A href="https://issues.apache.org/jira/browse/NIFI-2624" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-2624&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Koji&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2017 11:50:26 GMT</pubDate>
    <dc:creator>kkawamura</dc:creator>
    <dc:date>2017-01-24T11:50:26Z</dc:date>
    <item>
      <title>Oracle + NiFi =&gt; all fields converted to String</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/141561#M52253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using NiFi to transfer Oracle (11c) database tables to HDFS (Avro format).&lt;/P&gt;&lt;P&gt;Something goes wrong with the typing of the AVRO columns: they are all defined as String, even when the Oracle tablecolumn is of another type like Numeric, Timestamp of Datetime. Clearly, this is annoying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After some googling, I found suggestions that the problem exists in the combination of certain Oracle JDBC drivers and the converter to Avro. However, I could not find a proper solution; does anyone know what JDBC (or other?) driver to use in order to have correct typing in the Avro output?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:58:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/141561#M52253</guid>
      <dc:creator>bart_maes</dc:creator>
      <dc:date>2017-01-23T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle + NiFi =&gt; all fields converted to String</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/141562#M52254</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/15563/bartmaes.html" nodeid="15563"&gt;@Bart Maes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able to see the same behavior, with Oracle Amazon RDS and Oracle jdbc-drivers-12c.&lt;/P&gt;&lt;P&gt;As for Numeric columns, I think there're few problems ATM:&lt;/P&gt;&lt;P&gt;1. Oracle uses NUMBER even if the column is defined with INT [1] (This is not a driver side issue, I guess.)&lt;/P&gt;&lt;P&gt;2. JDBC driver maps Number to BigDecimal&lt;/P&gt;&lt;P&gt;3. NiFi implementation maps BigDecimal to String, since at that time, Avro didn't support BigDecimal mapping until Avro 1.8.1. Current NiFi uses Avro 1.7.7. With Avro 1.8.1, we can utilize LogicalType [2] to map BigDecimal or Date more user friendly way.&lt;/P&gt;&lt;P&gt;4. There's an ongoing effort in NiFi project [3] to use LogicalType mechanism, so that those data types can be mapped with more appropriate data types.&lt;/P&gt;&lt;P&gt;Excuse me for not being able to share a workaround for current situation, but once that change has been merged to NiFi, your experience with those data types will be better. Or other folks may know other solution.&lt;/P&gt;&lt;P&gt;1. &lt;A href="http://stackoverflow.com/questions/1419109/resultsetmetadata-returning-bigdecimal-insted-of-int" target="_blank"&gt;http://stackoverflow.com/questions/1419109/resultsetmetadata-returning-bigdecimal-insted-of-int&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. &lt;A href="http://avro.apache.org/docs/1.8.1/spec.html#Logical+Types" target="_blank"&gt;http://avro.apache.org/docs/1.8.1/spec.html#Logical+Types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. &lt;A href="https://issues.apache.org/jira/browse/NIFI-2624" target="_blank"&gt;https://issues.apache.org/jira/browse/NIFI-2624&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Koji&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 11:50:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/141562#M52254</guid>
      <dc:creator>kkawamura</dc:creator>
      <dc:date>2017-01-24T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle + NiFi =&gt; all fields converted to String</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/299300#M52255</link>
      <description>&lt;P&gt;&lt;SPAN&gt;u can set ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Use Avro Logical Types = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;in executeSQL or other processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this will solve the problem&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 07:56:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Oracle-NiFi-gt-all-fields-converted-to-String/m-p/299300#M52255</guid>
      <dc:creator>RakeshH</dc:creator>
      <dc:date>2020-07-08T07:56:26Z</dc:date>
    </item>
  </channel>
</rss>

