pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhijie Shen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-2996) The buildtin function "ToDate" has been mapped with wrong class names
Date Mon, 22 Oct 2012 00:18:11 GMT

    [ 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

Mime
View raw message