songwanging created PIG-4641: -------------------------------- Summary: Print the instance of Object without using toString() Key: PIG-4641 URL: https://issues.apache.org/jira/browse/PIG-4641 Project: Pig Issue Type: Bug Affects Versions: 0.15.0, 0.14.0, 0.13.0 Reporter: songwanging Priority: Minor
In Class: pig-0.15.0\src\org\apache\pig\scripting\js\JsFunction.java when printing the instance of Object "value", should use "toString()" to convert it to a String instance private void debugConvertPigToJS(int depth, String pigType, Object value, Schema schema) { if (LOG.isDebugEnabled()) { LOG.debug(indent(depth)+"converting from Pig " + pigType + " " + value + " using " + stringify(schema)); } } In the same Class, all others use toString(value) to print the instance of Object "value". -- This message was sent by Atlassian JIRA (v6.3.4#6332)