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

Error when using PigUnit on a script that uses IMPORT another script with macros

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Executing PigUnit against a script which uses the import command always fails with error:
      org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1000: Error during parsing. <line 4> : Duplicated import file 'somemacro.pig'

      Even though the script being tested does not preform an import of the same script twice.

      I've tried with a couple of different scripts/tests and it appears that PigUnit fails on any test of a pig script where an import command is issued.

        Attachments

        1. duplication-pigunit-parser-exception-HACK.patch
          2 kB
          Johannes Schwenk
        2. test-macro.zip
          1 kB
          Mark Roddy

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markroddy Mark Roddy
              • Votes:
                3 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: