<?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: Talend execution pre conditon set in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263205#M1833</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;Use a tHiveInput to query the max date and use runIf trigger to control the tHiveRow execution, eg:&lt;BR /&gt;tHiveInput--main--tJavaRow--runIf--tHiveRow&lt;BR /&gt;&lt;BR /&gt;on tJavaRow:&lt;BR /&gt;if(TalendDate.compareDate(input_row.dateColumnName, TalendDate.parseDate("yyyy-MM-dd", "2019-10-05"))==0){&lt;BR /&gt;context.isContinue=true;&lt;BR /&gt;}else{&lt;BR /&gt;context.isContinue=false;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//Define a context variable isContinue with boolean type. &lt;BR /&gt;&lt;BR /&gt;Set the condition of runIf as:&lt;BR /&gt;context.isContinue&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 04:46:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-15T04:46:29Z</dc:date>
    <item>
      <title>Talend execution pre conditon set</title>
      <link>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263204#M1832</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;i have a talend job which use tHiveRow to run query , how can i add some validation before run query.&lt;/P&gt;&lt;P&gt;So for example ,&lt;/P&gt;&lt;P&gt;Query Test1= insert into table a select * from table B.&lt;/P&gt;&lt;P&gt;Validation Test2=select max(date) from B.&lt;/P&gt;&lt;P&gt;if the result of Test2='2019-09-05' , then exit running but not throw excepting or error log, if Test2='2019-10-05' , then run query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am very novice in talend , please help and thanks so much in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263204#M1832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend execution pre conditon set</title>
      <link>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263205#M1833</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;Use a tHiveInput to query the max date and use runIf trigger to control the tHiveRow execution, eg:&lt;BR /&gt;tHiveInput--main--tJavaRow--runIf--tHiveRow&lt;BR /&gt;&lt;BR /&gt;on tJavaRow:&lt;BR /&gt;if(TalendDate.compareDate(input_row.dateColumnName, TalendDate.parseDate("yyyy-MM-dd", "2019-10-05"))==0){&lt;BR /&gt;context.isContinue=true;&lt;BR /&gt;}else{&lt;BR /&gt;context.isContinue=false;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;//Define a context variable isContinue with boolean type. &lt;BR /&gt;&lt;BR /&gt;Set the condition of runIf as:&lt;BR /&gt;context.isContinue&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 04:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263205#M1833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-15T04:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Talend execution pre conditon set</title>
      <link>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263206#M1834</link>
      <description>Thanks so much Shong. Just a note for other new learner , when we are using the TalendDate.compareDate(input_row.dateColumnName, TalendDate.parseDate("yyyy-MM-dd", "2019-10-05") , have to make sure both columns are date type.</description>
      <pubDate>Wed, 16 Oct 2019 03:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/Talend-execution-pre-conditon-set/m-p/2263206#M1834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-16T03:44:18Z</dc:date>
    </item>
  </channel>
</rss>

