I have a hive table "Records" with the following structure:
recordid int
addresses array<map<string,string>>
knownnames array<map<string,string>>
The addresses array contains the standard parts for an address (house number, street name, city, state) and may contain multiple of these elements (if a record has more than 1 address). The knownnames arrary contains first name, middle name, and last name and may contain multiple of each (if a record has akas).
How can I query my "records" table for all records that have any address in CA and a lastname of "Smith"?
I've tried exploding both arrays but it looks like hive doesn't like having elements from 2 different arrays in the where clause....