What are the relation operations in Pig? Explain any two with examples?
Answer Posted / Ankush Soni
Apache Pig supports various relational operators to manipulate data within relations. Some common operators include:n1. SELECT: The SELECT operator is used to filter tuples based on a specified condition or to select specific fields from the relation.nExample: SELECT * FROM data WHERE field1 > 5;n2. JOIN: The JOIN operator is used to combine rows from two or more relations based on a common column.nExample: JOIN data1 BY id, data2 BY id; In this example, data1 and data2 are the input relations, and they are joined based on the 'id' field.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers