Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HDPCD Developer Exam: Pig column indexing questions

avatar
New Contributor

Hi,

In HDPCD exam questions, when column 5 (for example ) is mentioned, does this refer to $4 in pig relation? I assume it does but just want to confirm.

1 ACCEPTED SOLUTION

avatar
New Contributor

To refer nth column , you have to use $(n-1) , so $4 will refer to 5th column .

View solution in original post

1 REPLY 1

avatar
New Contributor

To refer nth column , you have to use $(n-1) , so $4 will refer to 5th column .