[ https://issues.apache.org/jira/browse/HIVE-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068838#comment-13068838 ]
Hudson commented on HIVE-2209: ------------------------------ Integrated in Hive-trunk-h0.21 #838 (See [https://builds.apache.org/job/Hive-trunk-h0.21/838/]) HIVE-2209:add support for map comparision in serde layer (Krishna Kumar via He Yongqiang) heyongqiang : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1149027 Files : * /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestCrossMapEqualComparer.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/ObjectInspectorUtils.java * /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestSimpleMapEqualComparer.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/SimpleMapEqualComparer.java * /hive/trunk/serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestFullMapEqualComparer.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/MapEqualComparer.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/FullMapEqualComparer.java * /hive/trunk/serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/CrossMapEqualComparer.java > Provide a way by which ObjectInspectorUtils.compare can be extended by the > caller for comparing maps which are part of the object > --------------------------------------------------------------------------------------------------------------------------------- > > Key: HIVE-2209 > URL: https://issues.apache.org/jira/browse/HIVE-2209 > Project: Hive > Issue Type: Improvement > Reporter: Krishna Kumar > Assignee: Krishna Kumar > Priority: Minor > Attachments: HIVE-2209v0.patch, HIVE-2209v2.patch, HIVE2209v1.patch > > > 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. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira