<?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>topic Re: Important expressions in tFilterRow and tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303022#M74948</link>
    <description>Thanx nic, 
&lt;BR /&gt;but I am getting the following error message when I click on ellipsis in the field "Value" within tab "Function parameters" (tRowGenerator component): 
&lt;BR /&gt;Unhandled event loop exception 
&lt;BR /&gt;XPCOM error -2147467259 
&lt;BR /&gt;If I choose not to close the workbench after the error message and click on ellipsis again, Expression Builder opens but all portions of the window are just empty (Categories, Functions, Help)</description>
    <pubDate>Thu, 03 Jun 2010 15:35:32 GMT</pubDate>
    <dc:creator>vladika</dc:creator>
    <dc:date>2010-06-03T15:35:32Z</dc:date>
    <item>
      <title>Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303020#M74946</link>
      <description>Hi everyone, 
&lt;BR /&gt;I'm an extreme newbie with Talend + java so apologiez in advance... But I just entered the desperate phase.. 
&lt;BR /&gt;I have a desire to switch from usual query tool to ETL. I'm used to mySQL syntax, and in order to make that move, I need a replacement for the most important functions I use regularly: 
&lt;BR /&gt;Date manipulation: 
&lt;BR /&gt;datediff(), year(), month(), week() 
&lt;BR /&gt;String manipulation: 
&lt;BR /&gt;substring(), substring_index(), concatenate() 
&lt;BR /&gt;Conditional expression: 
&lt;BR /&gt;case...when...then...else...end 
&lt;BR /&gt;Operators: 
&lt;BR /&gt;like, in (), between...and... 
&lt;BR /&gt;I decided to translate one query to a Talend job with output in console (tLogRow) as a good learning example. Query contains: join, multiple where conditions including scalar select subquery in where clause and aggregation. And I 've been stuck on the first tFilterRow for two days...Reason? Lack of knowledge of Java, because I'm not able to get the syntax for advanced mode of tFilterRow. I guess the same syntax shares tMap component. The trouble is that I am not able to find any source of documentation about the code that I can write inside. I downloaded Java language specification, but I can't seem to find anything inside.. 
&lt;BR /&gt;For example, I need to translate this mySQL condition: 
&lt;BR /&gt;year(table1.entry_date) = 2010, 
&lt;BR /&gt;(date is in the format yyyy-mm-dd) 
&lt;BR /&gt;From what I picked browsing the forum it should look like this: 
&lt;BR /&gt;TalendDate.compareDate(input_row.entry_date, ????, "yyyy") 
&lt;BR /&gt;But, If I put ???? = 2010 I get an error that I'm using the integer instead of date datatype. If I put ???? = "2010" I get the error that I'm using the string instead of date datatype... So then, how do you quote a literal of "date" datatype ? 
&lt;BR /&gt;And more generaly can anyone point me to some source of documentation where I have listed all java methods I can use inside tFilterRow and tMap... 
&lt;BR /&gt;Big thanx!</description>
      <pubDate>Sat, 16 Nov 2024 13:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303020#M74946</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2024-11-16T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303021#M74947</link>
      <description>hi, 
&lt;BR /&gt;this is just a suggestion from someone who has been in this position. 
&lt;BR /&gt;create an empty job and add tRowGenerator, add a column to it; select this column and you will find on the lower portion of this screen under 'Function Parameter' a columns called values click on it and a ellipsis (...) will appear, click on it and you will find all function available to you. 
&lt;BR /&gt;i am sure there are better ways to seeing this but this one works.. 
&lt;BR /&gt;Nicolas</description>
      <pubDate>Thu, 03 Jun 2010 11:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303021#M74947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-03T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303022#M74948</link>
      <description>Thanx nic, 
&lt;BR /&gt;but I am getting the following error message when I click on ellipsis in the field "Value" within tab "Function parameters" (tRowGenerator component): 
&lt;BR /&gt;Unhandled event loop exception 
&lt;BR /&gt;XPCOM error -2147467259 
&lt;BR /&gt;If I choose not to close the workbench after the error message and click on ellipsis again, Expression Builder opens but all portions of the window are just empty (Categories, Functions, Help)</description>
      <pubDate>Thu, 03 Jun 2010 15:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303022#M74948</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2010-06-03T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303023#M74949</link>
      <description>Ok, now I see the source code of all the methods under Repository / Code / Routines / system.
&lt;BR /&gt;And I tried to change my condition under tFilterRow / Advance Mode into something trivial. I just took out the example from the TalendDate.compareDate method:
&lt;BR /&gt;TalendDate.compareDate(2008/11/24, 2008/11/24 ,"yyyy/MM/dd") == 0
&lt;BR /&gt;And I am still getting the error, that my first two arguments are of type int ?</description>
      <pubDate>Fri, 04 Jun 2010 10:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303023#M74949</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2010-06-04T10:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303024#M74950</link>
      <description>hi vladika&lt;BR /&gt;why don't try ELT Talend solution.&lt;BR /&gt;Have a look at &lt;A href="http://www.talend.com/webinar/archive/" target="_blank" rel="nofollow noopener noreferrer"&gt;on demand webinars&lt;/A&gt; and in your case look for &lt;I&gt;ELT: High Performance Loading for your Data Warehouse&lt;/I&gt;.&lt;BR /&gt;I think it give you some solution.&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Sun, 06 Jun 2010 17:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303024#M74950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-06T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303025#M74951</link>
      <description>Thanx kzone! I'll take a look at it for sure. Just by glancing through the documentation (TOS_componenets_RG) I already see that this is exactly what I'm looking for 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In the meantime I found the solution, so I'm posting it for all the other newbiez like me. So if you want to convert the mySQL syntax for the condition year(entry_date) = 2010 into Talend, by using only built in functions (java project) this is one way to do it: 
&lt;BR /&gt;TalendDate.diffDate(input_row.entry_date, TalendDate.parseDate("dd-MM-yyyy","01-01-2010"), "yyyy") == 0 
&lt;BR /&gt;But, before this make sure that your "date pattern" in "Edit Schema" window for the column entry_date (in my case) is the same like the format you're having in the DB table. For example, date format in mySQL is "yyyy-MM-dd", but Talend takes the default date pattern from the OS locale date/time format settings, which in case of Ubuntu / US English locale settings is "dd-MM-yyyy"..So it has to be changed.</description>
      <pubDate>Mon, 07 Jun 2010 10:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303025#M74951</guid>
      <dc:creator>vladika</dc:creator>
      <dc:date>2010-06-07T10:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Important expressions in tFilterRow and tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303026#M74952</link>
      <description>maybe this&amp;gt; TalendDate.parseDate("yyyy", input_row.entry_date ).equals( "2010" )
&lt;BR /&gt;*BUT*
&lt;BR /&gt;you should avoid doing this type of filtering in Talend when loading data from a Database, 
&lt;BR /&gt;and instead load only the data you need by using SQL WHERE clauses in your statements
&lt;BR /&gt;Nicolas</description>
      <pubDate>Wed, 09 Jun 2010 08:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Important-expressions-in-tFilterRow-and-tMap/m-p/2303026#M74952</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-09T08:28:59Z</dc:date>
    </item>
  </channel>
</rss>

