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 2015/07/29 02:11:05 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14645257#comment-14645257 ] 

Rohini Palaniswamy commented on PIG-4641:
-----------------------------------------

It is just a debug statement and it should not matter. 

> 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
>            Priority: Minor
>   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)