Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Now ObjectInspectorUtils.compare throws an exception if a map is contained (recursively) within the objects being compared. Two obvious implementations are
- a simple map comparer which assumes keys of the first map can be used to fetch values from the second
- a 'cross-product' comparer which compares every pair of key-value pairs in the two maps, and calls a match if and only if all pairs are matched
Note that it would be difficult to provide a transitive greater-than/less-than indication with maps so that is not in scope.