<?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 processor for converting a numeric type to string type for a specific column in CSV file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391754#M247758</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to NIFI, and I was wondering if I could change the specific&amp;nbsp;column in the csv file.&lt;/P&gt;&lt;P&gt;for example, if the column has numerical values it is supposed to be converted to string type&amp;nbsp;&lt;/P&gt;&lt;P&gt;like if the column had a numerical value 1 it should be converted to apple in the same column&lt;/P&gt;&lt;P&gt;I tried doing it by referring to websites but still I was not successful. Looking forward for some response for this problem. Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karankk_0-1723652411864.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41432iBFB288AA04290DE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karankk_0-1723652411864.png" alt="Karankk_0-1723652411864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Karankk_2-1723652522279.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41434i73017E3450FACE98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karankk_2-1723652522279.png" alt="Karankk_2-1723652522279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 16:22:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2024-08-14T16:22:52Z</dc:date>
    <item>
      <title>NIFI processor for converting a numeric type to string type for a specific column in CSV file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391754#M247758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to NIFI, and I was wondering if I could change the specific&amp;nbsp;column in the csv file.&lt;/P&gt;&lt;P&gt;for example, if the column has numerical values it is supposed to be converted to string type&amp;nbsp;&lt;/P&gt;&lt;P&gt;like if the column had a numerical value 1 it should be converted to apple in the same column&lt;/P&gt;&lt;P&gt;I tried doing it by referring to websites but still I was not successful. Looking forward for some response for this problem. Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Karankk_0-1723652411864.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41432iBFB288AA04290DE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karankk_0-1723652411864.png" alt="Karankk_0-1723652411864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="Karankk_2-1723652522279.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41434i73017E3450FACE98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Karankk_2-1723652522279.png" alt="Karankk_2-1723652522279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 16:22:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391754#M247758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-08-14T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI processor for converting a numeric type to string type for a specific column in CSV file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391758#M247760</link>
      <description>&lt;P&gt;@Former Member&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 18:33:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391758#M247760</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2024-08-14T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI processor for converting a numeric type to string type for a specific column in CSV file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391771#M247765</link>
      <description>&lt;P&gt;&lt;STRONG&gt;@Former Member&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LookupRecord&lt;/STRONG&gt; processor can be used in this case.&amp;nbsp; &amp;nbsp;Please check if this method works for you.&lt;/P&gt;&lt;P&gt;Sample CSV input&lt;/P&gt;&lt;P&gt;id,brand,phone&lt;BR /&gt;10,Samsung,1&lt;BR /&gt;20,Apple,2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Expected output (codes 1 and 2 are replaced with names)&lt;/P&gt;&lt;P&gt;id,brand,phone&lt;BR /&gt;10,Samsung,Note&lt;BR /&gt;20,Apple,iPhone&lt;/P&gt;&lt;P&gt;I tried nifi flow as below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiva239_0-1723667109978.png" style="width: 536px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41435i1E7E8CF77C0E9BE2/image-dimensions/536x367?v=v2" width="536" height="367" role="button" title="shiva239_0-1723667109978.png" alt="shiva239_0-1723667109978.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Lookup record configuration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiva239_1-1723667210044.png" style="width: 599px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41436iC89B25712C650AA3/image-dimensions/599x338?v=v2" width="599" height="338" role="button" title="shiva239_1-1723667210044.png" alt="shiva239_1-1723667210044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CSV Reader&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiva239_2-1723667287101.png" style="width: 581px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41437i61ABC42AF4922D83/image-dimensions/581x475?v=v2" width="581" height="475" role="button" title="shiva239_2-1723667287101.png" alt="shiva239_2-1723667287101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CSV Recordset Writer&lt;/P&gt;&lt;P&gt;Didnt make any change.&amp;nbsp; Used default settings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple KeyValue Lookup service.&amp;nbsp; There are several lookup services available in Nifi.&amp;nbsp; You may use right service as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiva239_3-1723667414993.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41438i5D73D18A406DE729/image-size/large?v=v2&amp;amp;px=999" role="button" title="shiva239_3-1723667414993.png" alt="shiva239_3-1723667414993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 20:33:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-processor-for-converting-a-numeric-type-to-string-type/m-p/391771#M247765</guid>
      <dc:creator>shiva239</dc:creator>
      <dc:date>2024-08-14T20:33:59Z</dc:date>
    </item>
  </channel>
</rss>

