You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Rohini Palaniswamy (JIRA)" <ji...@apache.org> on 2016/04/25 22:23:13 UTC

[jira] [Updated] (PIG-4641) Print the instance of Object without using toString()

     [ https://issues.apache.org/jira/browse/PIG-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohini Palaniswamy updated PIG-4641:
------------------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 0.16.0
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks for the contribution Sandeep.

> 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.13.0, 0.14.0, 0.15.0
>            Reporter: songwanging
>            Assignee: Sandeep Samdaria
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: PIG-4641.patch
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> 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)