Pig
  1. Pig
  2. PIG-2279

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major 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.

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

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Roddy
            • Votes:
              4 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:

                Development