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

Cast of nested types does work as expected

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.6.0
    • Component/s: impl
    • Labels:
      None

      Description

      The following script does not work as expected:

      1.txt:
      (0.2,0.3)

      a = load '1.txt';
      b = foreach a generate (tuple(int, int))$0;

      describe b;
      b:

      {(int,int)}

      dump b;
      ((0.2,0.3))

      The expect result is ((0, 0))

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              daijy Daniel Dai
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: