Complete the code to load data in Pig Latin.
data = LOAD 'input.txt' USING [1] AS (name:chararray, age:int);
In Pig, PigStorage is used to load data from text files with a delimiter.
Complete the Hive query to select all records from a table.
SELECT * FROM [1];In Hive, you select data from a table, not a database or column directly.
Fix the error in the Pig script to filter records where age is greater than 30.
filtered = FILTER data BY age [1] 30;
In Pig Latin, the correct operator for 'greater than' is >.
Fill both blanks to create a dictionary comprehension in Python that filters words longer than 3 characters.
lengths = {word: [1] for word in words if len(word) [2] 3}The dictionary comprehension maps each word to its length if the length is greater than 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase keys to values greater than 0.
result = { [1]: [2] for k, v in data.items() if v [3] 0 }This comprehension creates a dictionary with uppercase keys and values only if the value is greater than zero.