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

Macro expansion does not use pig.import.search.path - UnitTest borked

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, 0.10.0
    • Fix Version/s: 0.11, 0.10.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      pig-0.9.2 and pig-0.10.0, hadoop-0.20.2 from Clouderas distribution cdh3u3 on Kubuntu 12.04 64Bit.

    • Hadoop Flags:
      Reviewed
    • Release Note:
      Import search path property pig.import.search.path is now correctly used...

      Description

      org.apache.pig.test.TestMacroExpansion, in function importUsingSearchPathTest the import statement is provided with the full path to /tmp/mytest2.pig so the pig.import.search.path is never used. I changed the import to

      import 'mytest2.pig';

      and ran the UnitTest again. This time the test failed as expected from my experience from earlier this day trying in vain to get pig eat my pig.import.search.path property! Other properties in the same custom properties file (provided via -propertyFile command line option) like udf.import.list get read without any problem.

        Attachments

        1. PIG-2729.patch
          17 kB
          Johannes Schwenk
        2. PIG-2729.patch
          16 kB
          Johannes Schwenk
        3. PIG-2729.patch
          12 kB
          Johannes Schwenk
        4. PIG-2729.patch
          6 kB
          Johannes Schwenk
        5. use-search-path-for-imports.patch
          1 kB
          Johannes Schwenk
        6. test-macros.tar.gz
          0.8 kB
          Johannes Schwenk

          Activity

            People

            • Assignee:
              johannesch Johannes Schwenk
              Reporter:
              johannesch Johannes Schwenk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: