<?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: expression language for concatenating in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186496#M70516</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; That worked thanks a lot appreciate it&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 21:51:52 GMT</pubDate>
    <dc:creator>dhieru</dc:creator>
    <dc:date>2017-10-31T21:51:52Z</dc:date>
    <item>
      <title>expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186491#M70511</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am creating a new file name based on the time stamp and concatenate with random number but not able figure out the el expression for it&lt;/P&gt;&lt;P&gt;temp_${now():format("yyyy-MM-dd-HH-mm-ss"):join(random():mod(10):plus(1))},&lt;/P&gt;&lt;P&gt;however this expression is not valid EL expression&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dheeru&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:25:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186491#M70511</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-31T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186492#M70512</link>
      <description>&lt;P&gt;I tried using this temp_${now():format("yyyy-MM-dd-HH-mm-ss"):join(${random():mod(10):plus(1)})}, this time it is a valid EL expressioon but not generating the random number still&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:37:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186492#M70512</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-31T20:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186493#M70513</link>
      <description>&lt;P&gt;The &lt;A target="_blank" href="http://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#join"&gt;join()&lt;/A&gt; function, from the documentation, "may be used only in conjunction with the &lt;CODE&gt;allAttributes&lt;/CODE&gt;, &lt;CODE&gt;allMatchingAttributes&lt;/CODE&gt;, and &lt;CODE&gt;allDelineatedValues&lt;/CODE&gt; functions". I think you want the &lt;A target="_blank" href="http://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#append"&gt;append()&lt;/A&gt; function:&lt;/P&gt;&lt;P&gt; temp_${now():format("yyyy-MM-dd-HH-mm-ss"):append(${random():mod(10):plus(1)})}&lt;/P&gt;&lt;P&gt;I tested this with my &lt;A target="_blank" href="https://community.hortonworks.com/content/kbentry/144226/testing-nifi-expression-language-with-groovy.html"&gt;EL tester&lt;/A&gt; and it seems to work. However you might want to append a dash or underscore before the random digit, as the above expression will put the digit exactly after the number of seconds, unless that's what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:49:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186493#M70513</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-10-31T20:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186494#M70514</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/641/mburgess.html" nodeid="641"&gt;@Matt Burgess&lt;/A&gt; Thanks for the prompt reply. I will try and confirm it Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:51:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186494#M70514</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-31T20:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186495#M70515</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/20255/dheeruksingh.html" nodeid="20255"&gt;@dhieru singh&lt;/A&gt;&lt;P&gt;Join &lt;STRONG&gt;aggregate function works&lt;/STRONG&gt; on only attribute values and &lt;STRONG&gt;concatenate those values&lt;/STRONG&gt; with the specific delimiter that means&lt;/P&gt;&lt;P&gt;if you are having abc attribute as value hello and xyz having world&lt;/P&gt;&lt;PRE&gt;${allAttributes("abc", "xyz"):join(" now ")} will result hello now world&lt;/PRE&gt;&lt;P&gt;i.e all the attribute values got concatenated with now.&lt;/P&gt;&lt;P&gt;If you want to add attribute then use the below EL will result.&lt;/P&gt;&lt;PRE&gt;temp_${now():format("yyyy-MM-dd-HH-mm-ss")}+${random():mod(10):plus(1)}&lt;/PRE&gt;&lt;P&gt;without join function will result&lt;/P&gt;&lt;PRE&gt;temp_2017-10-31-09-48-10+8&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:53:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186495#M70515</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-31T20:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: expression language for concatenating</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186496#M70516</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; That worked thanks a lot appreciate it&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 21:51:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/expression-language-for-concatenating/m-p/186496#M70516</guid>
      <dc:creator>dhieru</dc:creator>
      <dc:date>2017-10-31T21:51:52Z</dc:date>
    </item>
  </channel>
</rss>

