Zhijie Shen created PIG-2996:
--------------------------------

             Summary: 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

Reply via email to