input1 = load '$input1' as (id, extracted_at_utc, attribute); maxes = foreach (group input1 by id) generate id, attribute, MAX(extracted_at_utc) as latest_extract_utc; unique_maxes = DISTINCT maxes;
input1 = load '$input1' as (id, extracted_at_utc, attribute); maxes = foreach (group input1 by id) generate id, attribute, MAX(extracted_at_utc) as latest_extract_utc; unique_maxes = DISTINCT maxes;
You must be logged in to post a comment, please Sign in