Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2996

The buildtin function "ToDate" has been mapped with wrong class names

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: data
    • Labels:
      None

      Description

      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().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zjshen Zhijie Shen
                Reporter:
                zjshen Zhijie Shen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: