<?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: tDbrow snowflake multiple queries in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372386#M135233</link>
    <description>&lt;P&gt;How to use Session variable in tSnowflakeRow component ?&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;SET NumOfRows = IFNULL((SELECT COUNT(*) FROM EDWBIRPT.dbo.Appraisal_R),0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET StartDate =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CASE $NumOfRows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHEN 0 THEN DATE_TRUNC(month,DATEADD(month,-24,current_date()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE DATE_TRUNC(month,DATEADD(month,-1,current_date()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use this statement I am getting below error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ERROR] 16:34:38 org.talend.components.snowflake.runtime.SnowflakeRowStandalone- Query execution has failed. Please validate your query.&lt;/P&gt;&lt;P&gt;net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error: error line 25 at position 9&lt;/P&gt;&lt;P&gt;Session variable '$NUMOFROWS' does not exist&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 23:46:24 GMT</pubDate>
    <dc:creator>Rama4</dc:creator>
    <dc:date>2022-07-07T23:46:24Z</dc:date>
    <item>
      <title>tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372380#M135227</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I have some 10 queries with creating temp tables ,insert,update, drop temp tables and am giving that in single tdbrow with pre existing connection. Before that in same connection I gave alter session multi_statement_count =0, when I run the query first time throwed error "Query executed successfully,  but it returned an update count,  result set required"​  ,then one time it ran and now its giving same error.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;   I tried removing parts of query too.  But queries running in snowflake fine. Only through Talend am facing issue.zCan someone explain pls.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372380#M135227</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2024-11-15T23:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372381#M135228</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please clarify in which Talend version/edition you are?&lt;/P&gt;&lt;P&gt;We found a similar issue in release v 7.3.1 about Snowflake multi statement execution error and this issue is fixed &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.2" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.2" target="_blank"&gt;7.3.2&lt;/A&gt;, &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.1-R2020-05" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.1-R2020-05" target="_blank"&gt;7.3.1-R2020-05&lt;/A&gt;, &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+8.0.1" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+8.0.1" target="_blank"&gt;8.0.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With any subscription solution, please contact talend support team for a fixed patch.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 07:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372381#M135228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-22T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372382#M135229</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please clarify in which Talend version/edition you are?&lt;/P&gt;&lt;P&gt;We found this issue in release v 7.3.1 about Snowflake multi statement execution error and this issue is fixed &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.2" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.2" target="_blank"&gt;7.3.2&lt;/A&gt;, &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.1-R2020-05" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+7.3.1-R2020-05" target="_blank"&gt;7.3.1-R2020-05&lt;/A&gt;, &lt;A href="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+8.0.1" alt="https://jira.talendforge.org/issues/?jql=project+%3D+TDI+AND+fixVersion+%3D+8.0.1" target="_blank"&gt;8.0.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With any subscription solution, please contact talend support team to ask for a fixed patch.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372382#M135229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-22T08:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372383#M135230</link>
      <description>&lt;P&gt;Ya am using 7.3.1. Is there any work around for this in this version​&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 11:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372383#M135230</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2021-10-22T11:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372384#M135231</link>
      <description>&lt;P&gt;To be precise am using Talend Real Time Big data platform (R2021-03-7.3.1)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 15:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372384#M135231</guid>
      <dc:creator>AbiJeev</dc:creator>
      <dc:date>2021-10-22T15:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372385#M135232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please create a support case on talend support portal so that our colleagues from support team will deliver a fixed patch to you through support cycle with priority.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 04:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372385#M135232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-25T04:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372386#M135233</link>
      <description>&lt;P&gt;How to use Session variable in tSnowflakeRow component ?&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;SET NumOfRows = IFNULL((SELECT COUNT(*) FROM EDWBIRPT.dbo.Appraisal_R),0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET StartDate =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CASE $NumOfRows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHEN 0 THEN DATE_TRUNC(month,DATEADD(month,-24,current_date()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE DATE_TRUNC(month,DATEADD(month,-1,current_date()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;END;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use this statement I am getting below error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ERROR] 16:34:38 org.talend.components.snowflake.runtime.SnowflakeRowStandalone- Query execution has failed. Please validate your query.&lt;/P&gt;&lt;P&gt;net.snowflake.client.jdbc.SnowflakeSQLException: SQL compilation error: error line 25 at position 9&lt;/P&gt;&lt;P&gt;Session variable '$NUMOFROWS' does not exist&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 23:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372386#M135233</guid>
      <dc:creator>Rama4</dc:creator>
      <dc:date>2022-07-07T23:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: tDbrow snowflake multiple queries</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372387#M135234</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm not sure that the support of Session variable has been already added into tDBRow component and will check it with our component team for further confirmation.&lt;/P&gt;&lt;P&gt;How about using context variable in your global sql queries (tsnowflakeInput) component? &lt;/P&gt;&lt;P&gt;You are able to define your query as:&lt;/P&gt;&lt;P&gt;"SELECT * FROM mytable WHERE column1 = "+context.myvariable&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 04:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDbrow-snowflake-multiple-queries/m-p/2372387#M135234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-11T04:30:00Z</dc:date>
    </item>
  </channel>
</rss>

