Hive Query: Matching column Values from Array of string to make Flags
问题 I have some records where every row belongs to some categories (data type - array of string) and a separate list of unique category(data type - string). I need to match every row with unique list and create flags for it. Input: ------ ID Category 1 ["Physics","Math"] 2 ["Math"] 3 ["Math,"Chemistry"] 4 ["Physics","Computer"] Now I have separate list of unique list of category in excel in local like below: Unique Category ["Physics"] ["Math"] ["Chemistry"] ["Computer"] Final Output should look