Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDPCP Practical Exam problem

Solved Go to solution

HDPCP Practical Exam problem

New Contributor

Hi,

I was going through the practical exam for HDPCD in AWS. There is a question in pig as

"Remove all rows in the flightdelays data where the DepTime column equals the string "NA".

The answer provided for this question says:

b = filter a by (chararray) $4 != 'NA' or (chararray) $11 != 'NA';

I do not understand why It checks 2 fields here. Is it correct or am I missing something ? Because of this I find differences in the actual output and my answer.

Please help me to understand if anyone has idea about it.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: HDPCP Practical Exam problem

There is a typo in the solution.

The correct line in the solution should be

b = filter a by (chararray) $4 != 'NA';

Thanks

2 REPLIES 2
Highlighted

Re: HDPCP Practical Exam problem

There is a typo in the solution.

The correct line in the solution should be

b = filter a by (chararray) $4 != 'NA';

Thanks

Re: HDPCP Practical Exam problem

New Contributor

Thank you!

Don't have an account?
Coming from Hortonworks? Activate your account here