You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2012/10/22 02:18:11 UTC

[jira] [Commented] (PIG-2996) The buildtin function "ToDate" has been mapped with wrong class names

    [ https://issues.apache.org/jira/browse/PIG-2996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481099#comment-13481099 ] 

Zhijie Shen commented on PIG-2996:
----------------------------------

The fix is included in the patch for PIG-2982.
                
> The buildtin function "ToDate" has been mapped with wrong class names
> ---------------------------------------------------------------------
>
>                 Key: PIG-2996
>                 URL: https://issues.apache.org/jira/browse/PIG-2996
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>             Fix For: 0.11
>
>
> In ToDate#getArgToFuncMapping(), the method to get the mapped function's class name is incorrect:
> s = new Schema();
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         funcList.add(new FuncSpec(ToDateISO.class.getClass().getName(), s));
>         s = new Schema();
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         funcList.add(new FuncSpec(ToDate2ARGS.class.getClass().getName(), s));
>         s = new Schema();
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
>         funcList.add(new FuncSpec(ToDate3ARGS.class.getClass().getName(), s));
> XXXX.class.getClass().getName() should be changed to XXXX.class.getName().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira