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

newline messes up deep casting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.0
    • None
    • parser
    • None

    Description

      Having a newline between GENERATE and a deep cast like (bag

      {tuple(long)}) causes a syntax error.

      For example:

      grunt> a = load '/etc/passwd' using PigStorage(':') as (foo, bar);
      grunt> b = foreach a generate (bag{tuple(long)}

      ) foo;

      Works. But this causes a syntax error:

      grunt> b = foreach a generate
      >> (bag

      {tuple(long)}

      ) foo;
      2012-10-05 00:34:40,962 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 5, column 1> Syntax error, unexpected symbol at or near 'bag'
      Details at logfile: /var/log/pig/pig_1349397242524.log

      Attachments

        Activity

          People

            Unassigned Unassigned
            rezazadeh Reza Zadeh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: