Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-157 Add types and rework execution pipeline
  3. PIG-159

Make changes to the parser to support new types functionality

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • impl
    • None
    • Patch Available

    Description

      In order to support the new types functionality described in http://wiki.apache.org/pig/PigTypesFunctionalSpec, the parse needs to change in the following ways:

      1) AS needs to support types in addition to aliases. So where previously it was legal to say:

      a = load 'myfile' as a, b, c;

      it will now also be legal to say

      a = load 'myfile' as a integer, b float, c chararray;

      2) Non string constants need to be supported. This includes non-string atomic types (integer, long, float, double) and the non-atomic types bags, tuples, and maps.

      3) A cast operator needs to be added so that fields can be explicitly casted.

      4) Changes to DEFINE, to allow users to declare arguments and return types for UDFs

      Attachments

        1. parser_chages_v9.patch
          4 kB
          Santhosh Muthur Srinivasan
        2. parser_chages_v8.patch
          50 kB
          Santhosh Muthur Srinivasan
        3. parser_chages_v7.patch
          43 kB
          Santhosh Muthur Srinivasan
        4. parser_chages_v6.patch
          34 kB
          Santhosh Muthur Srinivasan
        5. parser_chages_v5.patch
          70 kB
          Santhosh Muthur Srinivasan
        6. parser_chages_v13.patch
          7 kB
          Santhosh Muthur Srinivasan
        7. parser_chages_v12.patch
          14 kB
          Santhosh Muthur Srinivasan
        8. parser_chages_v11.patch
          14 kB
          Santhosh Muthur Srinivasan
        9. parser_chages_v10.patch
          17 kB
          Santhosh Muthur Srinivasan

        Activity

          People

            sms Santhosh Muthur Srinivasan
            gates Alan Gates
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: