PERFORMANCE: HDataType.getWritableComparableTypes() method can use the supplied key type rather than figuring it out using instanceof -------------------------------------------------------------------------------------------------------------------------------------
Key: PIG-677 URL: https://issues.apache.org/jira/browse/PIG-677 Project: Pig Issue Type: Improvement Affects Versions: types_branch Reporter: Pradeep Kamath Priority: Minor Fix For: types_branch Currently HDataType.getWritableComparableTypes method gets the object for which a NullableXXX object needs to be returned and also the key type which indicates the data types of the incoming object. However by default the method calls DataType.findType on the incoming object which inturn does an instanceof with if-else to figure out the type. This can be avoided since the second argument, keyType, already has the type of the incoming object -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.