<?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: concatenate context variable in a table name in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299182#M71554</link>
    <description>&lt;P&gt;I was still getting errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I made it more simple&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"select * from 
[dw-bigquery:45234.ga_table_" +context.load_date+ "]"&lt;/PRE&gt;
&lt;P&gt;When I run it does not recognise context variable and the table looks like following&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[dw-bigquery:45234.ga_table_]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 11:09:55 GMT</pubDate>
    <dc:creator>dwhdeveloper</dc:creator>
    <dc:date>2017-06-28T11:09:55Z</dc:date>
    <item>
      <title>concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299180#M71552</link>
      <description>&lt;P&gt;I have to extract data daily from big query. There is a new table created daily with the timestamp in it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example [dw-bigquery:45234.ga_table_20170626]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;a context variable which receives the date from a table&amp;nbsp;in YYYY-mm-dd format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is my query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;[dw-bigquery:45234.ga_table_' +TalendDate.formatDate("yyyyMMdd", context.load_date)+ ']&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get an error for invalid assignment operator.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299180#M71552</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2024-11-16T09:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299181#M71553</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;"select * from 
[dw-bigquery:45234.ga_table_" +TalendDate.formatDate("yyyyMMdd", context.load_date)+ "]"&lt;/PRE&gt;&lt;P&gt;because each string part must be enclosed between "" (don't know if you need ' and [] for big query).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 15:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299181#M71553</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-27T15:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299182#M71554</link>
      <description>&lt;P&gt;I was still getting errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I made it more simple&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"select * from 
[dw-bigquery:45234.ga_table_" +context.load_date+ "]"&lt;/PRE&gt;
&lt;P&gt;When I run it does not recognise context variable and the table looks like following&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[dw-bigquery:45234.ga_table_]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 11:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299182#M71554</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2017-06-28T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299183#M71555</link>
      <description>&lt;P&gt;Your context variable appears to be holding an empty String.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 11:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299183#M71555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-28T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299184#M71556</link>
      <description>&lt;P&gt;Can you show us the part of your job that retrieves the date and sets the context variable?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299184#M71556</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-28T13:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299185#M71557</link>
      <description>I set a value where I define my context. Somehow it is not being passed.&lt;BR /&gt;But when I set it from sql in tjavarow it works</description>
      <pubDate>Wed, 28 Jun 2017 14:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299185#M71557</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2017-06-28T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299186#M71558</link>
      <description>I found a way by using tposgresqlinput and tjavarow</description>
      <pubDate>Wed, 28 Jun 2017 14:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299186#M71558</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2017-06-28T14:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299187#M71559</link>
      <description>&lt;P&gt;What was your solution using tjavarow?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 20:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299187#M71559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate context variable in a table name</title>
      <link>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299188#M71560</link>
      <description>&lt;P&gt;First I select the date from my table using tPostgresqlInput and then assign it to context variable in t_javarow.&lt;/P&gt;&lt;P&gt;context.load_date=input.load_date&lt;/P&gt;&lt;P&gt;and later in tBigQueryInput I use the context variable as following for table name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[project-bigquery:123456.ga_sessions_" + context.load_date + "]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/concatenate-context-variable-in-a-table-name/m-p/2299188#M71560</guid>
      <dc:creator>dwhdeveloper</dc:creator>
      <dc:date>2017-08-30T10:26:50Z</dc:date>
    </item>
  </channel>
</rss>

