If using the map type in a Hive table, how can I test for a null entry (key exists, but value is null)?
With table:
test1 (id string, m map<string, string>)
I have a few entries that look like this:
id1 {"b":"B","c":null}
id2 {"b":"B"}
If I run the query:
select * from test1 where m["c"] is null;
I will get both rows back since expression evaluates true each time.
How can I test between key exists and value is null?