Answer Posted / Ruchit Kumar Sajjan
"Map" in Apache Pig is a collection that stores key-value pairs. It's useful for representing data as a dictionary, where each key corresponds to a specific value.nnExample usage:n`data = FOREACH input_data GENERATE col1 AS key, col2 AS value; maps = FOREACH data GENERATE tomap(key, value);`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers