<?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>article Building a Talend 6.4.1 Hive Spark Job results in the compilation error 'Duplicate local variable' in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Building-a-Talend-6-4-1-Hive-Spark-Job-results-in-the/ta-p/2150634</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Problem Description&lt;/H1&gt;
&lt;P&gt;When compiling a Talend 6.4.1 Spark Hive Job with schema &lt;STRONG&gt;BigDecimal type&lt;/STRONG&gt; columns, because the generated Job Java code contains local variables (here, the local variable is scale_3) that have been declared several times, it fails with the following message:&lt;/P&gt;
&lt;PRE&gt;Duplicate local variable scale_3&lt;/PRE&gt;
&lt;P&gt;In this case, the batch Spark Job contains a &lt;STRONG&gt;tUniqRow&lt;/STRONG&gt; component with two links to a &lt;STRONG&gt;tHiveOutput&lt;/STRONG&gt; component:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tUniqRow&lt;/STRONG&gt; &amp;gt; (uniques) &amp;gt; &lt;STRONG&gt;tHiveOutput &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tUniqRow&amp;nbsp;&lt;/STRONG&gt;&amp;gt; (duplicates) &amp;gt; &lt;STRONG&gt;tHiveOutput &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The components schema contains &lt;STRONG&gt;BigDecimal type&lt;/STRONG&gt; columns.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: This problem does not occur when using a non-BigDecimal column type in the components schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Root Cause&lt;/H1&gt;
&lt;P&gt;This is a known bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Solution&lt;/H1&gt;
&lt;P&gt;From Talend Studio 6.4.1 apply the patch: &lt;STRONG&gt;Patch_20170804_TPS-2077_v1-6.4.1&lt;/STRONG&gt;, available from &lt;A href="https://www.talend.com/services/technical-support/" target="_blank"&gt;Talend Support&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To apply the patch manually, perform the steps indicated in the &lt;STRONG&gt;readme.txt&lt;/STRONG&gt;&amp;nbsp;included in the patch file (&lt;STRONG&gt;Patch_20170804_TPS-2077_v1-6.4.1.zip&lt;/STRONG&gt;).&lt;/P&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T18:22:49Z</dc:date>
    <item>
      <title>Building a Talend 6.4.1 Hive Spark Job results in the compilation error 'Duplicate local variable'</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Building-a-Talend-6-4-1-Hive-Spark-Job-results-in-the/ta-p/2150634</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H1&gt;Problem Description&lt;/H1&gt;
&lt;P&gt;When compiling a Talend 6.4.1 Spark Hive Job with schema &lt;STRONG&gt;BigDecimal type&lt;/STRONG&gt; columns, because the generated Job Java code contains local variables (here, the local variable is scale_3) that have been declared several times, it fails with the following message:&lt;/P&gt;
&lt;PRE&gt;Duplicate local variable scale_3&lt;/PRE&gt;
&lt;P&gt;In this case, the batch Spark Job contains a &lt;STRONG&gt;tUniqRow&lt;/STRONG&gt; component with two links to a &lt;STRONG&gt;tHiveOutput&lt;/STRONG&gt; component:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tUniqRow&lt;/STRONG&gt; &amp;gt; (uniques) &amp;gt; &lt;STRONG&gt;tHiveOutput &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;tUniqRow&amp;nbsp;&lt;/STRONG&gt;&amp;gt; (duplicates) &amp;gt; &lt;STRONG&gt;tHiveOutput &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The components schema contains &lt;STRONG&gt;BigDecimal type&lt;/STRONG&gt; columns.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: This problem does not occur when using a non-BigDecimal column type in the components schema.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Root Cause&lt;/H1&gt;
&lt;P&gt;This is a known bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1&gt;Solution&lt;/H1&gt;
&lt;P&gt;From Talend Studio 6.4.1 apply the patch: &lt;STRONG&gt;Patch_20170804_TPS-2077_v1-6.4.1&lt;/STRONG&gt;, available from &lt;A href="https://www.talend.com/services/technical-support/" target="_blank"&gt;Talend Support&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To apply the patch manually, perform the steps indicated in the &lt;STRONG&gt;readme.txt&lt;/STRONG&gt;&amp;nbsp;included in the patch file (&lt;STRONG&gt;Patch_20170804_TPS-2077_v1-6.4.1.zip&lt;/STRONG&gt;).&lt;/P&gt;
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Building-a-Talend-6-4-1-Hive-Spark-Job-results-in-the/ta-p/2150634</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

