hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunderlin, Mark" <>
Subject How to check if all key/value pairs in two maps are equal?
Date Thu, 02 Feb 2012 17:18:44 GMT
I am trying to see of two hive maps have the same data in them.  I am not looking to see if
any single key-value pair in the maps match, I am looking to see if

a)    There is a one to one match between the keys in map1 and the keys in map2

b)   The matching keys  have the same value in both maps

This doesn't work, but it shows what I want to do:

            when map1 = map2
                        then 'maps match'
                        else 'maps do not match'
end match_result

Mark E. Sunderlin
Solutions Architect   |AOL Core Data Technologies
P: 703-256-6935       | C: 540-327-6222 | AIM: MESunderlin
22000 AOL Way,  Dulles, VA  20166

View raw message