You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/12/03 04:41:58 UTC
[jira] [Resolved] (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:all-tabpanel ]
Cheolsoo Park resolved PIG-2996.
--------------------------------
Resolution: Fixed
PIG-2982 incorporated the fix, so closing the jira.
> 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