<?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: HDPCD Practice Exam TASK 03 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155082#M32846</link>
    <description>&lt;P&gt;Just a couple of helpful tips:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The tab is the default delimiter, so you can just use LOAD '/user/horton/flightdelays_clean'&lt;/LI&gt;&lt;LI&gt;The answers to the Practice Exam tasks are on the Ubuntu client in the /home/horton/solutions folder.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 24 Jun 2016 02:42:46 GMT</pubDate>
    <dc:creator>rich1</dc:creator>
    <dc:date>2016-06-24T02:42:46Z</dc:date>
    <item>
      <title>HDPCD Practice Exam TASK 03</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155080#M32844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;I'm attempting the TASK 03  on Practice test.&lt;DIV&gt;PART 1
I was successfully able to load the records into ‘/user/horton/flightdelays_clean’&lt;DIV&gt;
While attempting the part 2 of TASK 03

I do the following:&lt;DIV&gt;A = LOAD  '/user/horton/flightdelays_clean' USING PigStorage(',') ;
&lt;DIV&gt;--- A has 29534 records

B = FILTER A BY $8 == 'DEN';
---[main] WARN  org.apache.pig.newplan.BaseOperatorPlan - ---Encountered Warning IMPLICIT_CAST_TO_CHARARRAY 1 time(s)

Output(s):
Successfully stored 0 records in: "hdfs://namenode:8020/tmp/temp-577228131/tmp-2029278778"

&lt;DIV&gt;There is  no rows being imported into B. I thing the way I'm comparing $8 with DEN is not right.

&lt;DIV&gt;I also tried to import A with Schema like the following:

grunt&amp;gt; A = LOAD  '/user/horton/flightdelays_clean' USING PigStorage(',') AS (Year:int, Month:int, DayofMonth:int,DepTime:int, UniqueCarrier:chararray, FlightNum:int, ArrDelay:int, Origin:chararray, Dest:chararray);
2016-06-23 18:26:32,428 [main] WARN  org.apache.pig.newplan.BaseOperatorPlan - Encountered Warning IMPLICIT_CAST_TO_CHARARRAY 1 time(s).
&lt;DIV&gt;

B = FILTER A BY Dest == 'DEN';
&lt;DIV&gt;I still end up wiht no rows being written to B;
&lt;DIV&gt;I'm not facing errors but I see the string comparision is not working.

&lt;DIV&gt;How can i fix this?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10815"&gt;@rich&lt;/a&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:27:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155080#M32844</guid>
      <dc:creator>cmu_snehachalla</dc:creator>
      <dc:date>2022-09-16T10:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD Practice Exam TASK 03</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155081#M32845</link>
      <description>&lt;P&gt;Using  a '\t' delimiter instead of   a ',' works . This is resolved . Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 02:04:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155081#M32845</guid>
      <dc:creator>cmu_snehachalla</dc:creator>
      <dc:date>2016-06-24T02:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: HDPCD Practice Exam TASK 03</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155082#M32846</link>
      <description>&lt;P&gt;Just a couple of helpful tips:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The tab is the default delimiter, so you can just use LOAD '/user/horton/flightdelays_clean'&lt;/LI&gt;&lt;LI&gt;The answers to the Practice Exam tasks are on the Ubuntu client in the /home/horton/solutions folder.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 24 Jun 2016 02:42:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDPCD-Practice-Exam-TASK-03/m-p/155082#M32846</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2016-06-24T02:42:46Z</dc:date>
    </item>
  </channel>
</rss>

