adspace
Answer Posted / Shabana Azmi
The `PLUCK` operator in Apache Pig is used to extract specific columns from a relation based on a given schema. It takes two arguments: the input relation and a tuple representing the indices or names of the desired columns. Here's an example:nn``piglatinnA = LOAD 'input/data.txt' AS (a:char, b:int, c:float);nB = PLUCK A ((0), (2));ndump B;``
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers