<?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 tDynamoDBInput_1 filter expression with Global Variable date type or Long in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDynamoDBInput-1-filter-expression-with-Global-Variable-date/m-p/2325230#M94852</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a simple filter expression with updated_at column &amp;gt; max(last run)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created GlobalVar to get max(last date updated) in dwh layer, so data type is Datetime2 19 positions "yyyy-MM-dd HH:mm:ss" with the value :&lt;/P&gt;&lt;P&gt;2021-02-09 11:27:59&lt;/P&gt;&lt;P&gt;also I've created A string GlobalVar to get max(last date updated) as original string  in dwh layer, so data type is String with the value " &lt;/P&gt;&lt;P&gt;1612862879.914776&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the updated_at column in the source is String 100 which consist of epoch date time conversion with the value i.e. &lt;/P&gt;&lt;P&gt;"1611885640.620273"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I convert the string to long and then to Date using those commands :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;row3.UPDATED_AT==null?-1:Long.parseLong(StringHandling.TRIM(row3.UPDATED_AT.substring(0,10)))&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;out5.UPDATED_AT_long==-1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;            ?TalendDate.parseDate("yyyy-MM-dd HH:mm:ss","1900-01-01 HH:mm:ss",true)&lt;/P&gt;&lt;P&gt;             :new java.util.Date(out5.UPDATED_AT_long*1000)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created 2 Global mac just in case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((Date) globalMap.get("max_date")) 2021-02-09 11:27:59&lt;/P&gt;&lt;P&gt;((String) globalMap.get("max_updated_at")) 1612862879.914776&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need assistance please how to use it in tDynamoDBinput_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in filter expression or in advanced filter expression , and please dont forget that the column in the source comes in String Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:38:32 GMT</pubDate>
    <dc:creator>CostinMarzea</dc:creator>
    <dc:date>2024-11-16T00:38:32Z</dc:date>
    <item>
      <title>tDynamoDBInput_1 filter expression with Global Variable date type or Long</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDynamoDBInput-1-filter-expression-with-Global-Variable-date/m-p/2325230#M94852</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a simple filter expression with updated_at column &amp;gt; max(last run)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created GlobalVar to get max(last date updated) in dwh layer, so data type is Datetime2 19 positions "yyyy-MM-dd HH:mm:ss" with the value :&lt;/P&gt;&lt;P&gt;2021-02-09 11:27:59&lt;/P&gt;&lt;P&gt;also I've created A string GlobalVar to get max(last date updated) as original string  in dwh layer, so data type is String with the value " &lt;/P&gt;&lt;P&gt;1612862879.914776&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the updated_at column in the source is String 100 which consist of epoch date time conversion with the value i.e. &lt;/P&gt;&lt;P&gt;"1611885640.620273"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I convert the string to long and then to Date using those commands :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;row3.UPDATED_AT==null?-1:Long.parseLong(StringHandling.TRIM(row3.UPDATED_AT.substring(0,10)))&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;out5.UPDATED_AT_long==-1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;            ?TalendDate.parseDate("yyyy-MM-dd HH:mm:ss","1900-01-01 HH:mm:ss",true)&lt;/P&gt;&lt;P&gt;             :new java.util.Date(out5.UPDATED_AT_long*1000)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created 2 Global mac just in case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((Date) globalMap.get("max_date")) 2021-02-09 11:27:59&lt;/P&gt;&lt;P&gt;((String) globalMap.get("max_updated_at")) 1612862879.914776&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I need assistance please how to use it in tDynamoDBinput_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in filter expression or in advanced filter expression , and please dont forget that the column in the source comes in String Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDynamoDBInput-1-filter-expression-with-Global-Variable-date/m-p/2325230#M94852</guid>
      <dc:creator>CostinMarzea</dc:creator>
      <dc:date>2024-11-16T00:38:32Z</dc:date>
    </item>
  </channel>
</rss>

