<?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>question Re: PIG tranform relations format after first load in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213256#M63295</link>
    <description>&lt;P style="margin-left: 40px;"&gt;Thanks so much &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@Lester Martin&lt;/A&gt; I appreciate your help now worked, I replaced my statement using yours and it worked. &lt;/P&gt;&lt;P&gt;salaries_cl = FOREACH salaries_fl GENERATE (int)year as year:int,$1,$2,$3, (long)salary as salary:long;&lt;/P&gt;&lt;P&gt;Weird why the other one didn't work but well thanks so much.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2017 02:18:50 GMT</pubDate>
    <dc:creator>AndresUrrego</dc:creator>
    <dc:date>2017-06-24T02:18:50Z</dc:date>
    <item>
      <title>PIG tranform relations format after first load</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213254#M63293</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;My case today is a little weird for me cause according to me I'm  running the right scripts but well anyways, the thing is that I need load a file with a char structure but then I need to delete the headers and set the right structure relation.&lt;/P&gt;&lt;P&gt;Here my code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17463-transformed.png" style="width: 695px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16507i83213773F0ECD51A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17463-transformed.png" alt="17463-transformed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Finally, I'm trying to perform a sum using this new structure but Pig always according with the log return an error casting the column with the new format as long for salary and int for the year so is like Pig won't be able to get the new structure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17464-transformed.png" style="width: 912px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16508i3A8A7715EB9312E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17464-transformed.png" alt="17464-transformed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="17465-transformed.png" style="width: 1062px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16509iAD1795B89D9564B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="17465-transformed.png" alt="17465-transformed.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could some of our gurus let me know the right way to get a nice transformation and perform my scripts.&lt;/P&gt;&lt;P&gt;thanks so much&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:40:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213254#M63293</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2019-08-18T03:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: PIG tranform relations format after first load</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213255#M63294</link>
      <description>&lt;P&gt;Instead of &lt;/P&gt;&lt;PRE&gt;year as (year:int)&lt;/PRE&gt;&lt;P&gt;try&lt;/P&gt;&lt;PRE&gt;(int) year as castedYear:int
&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 01:37:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213255#M63294</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-06-23T01:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: PIG tranform relations format after first load</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213256#M63295</link>
      <description>&lt;P style="margin-left: 40px;"&gt;Thanks so much &lt;A rel="user" href="https://community.cloudera.com/users/122/lmartin.html" nodeid="122"&gt;@Lester Martin&lt;/A&gt; I appreciate your help now worked, I replaced my statement using yours and it worked. &lt;/P&gt;&lt;P&gt;salaries_cl = FOREACH salaries_fl GENERATE (int)year as year:int,$1,$2,$3, (long)salary as salary:long;&lt;/P&gt;&lt;P&gt;Weird why the other one didn't work but well thanks so much.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 02:18:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PIG-tranform-relations-format-after-first-load/m-p/213256#M63295</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-06-24T02:18:50Z</dc:date>
    </item>
  </channel>
</rss>

