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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2, 0.10.0
    • 0.11, 0.10.1
    • None
    • None
    • pig-0.9.2 and pig-0.10.0, hadoop-0.20.2 from Clouderas distribution cdh3u3 on Kubuntu 12.04 64Bit.

    • Reviewed
    • 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. use-search-path-for-imports.patch
          1 kB
          Johannes Schwenk
        2. test-macros.tar.gz
          0.8 kB
          Johannes Schwenk
        3. PIG-2729.patch
          6 kB
          Johannes Schwenk
        4. PIG-2729.patch
          12 kB
          Johannes Schwenk
        5. PIG-2729.patch
          16 kB
          Johannes Schwenk
        6. PIG-2729.patch
          17 kB
          Johannes Schwenk

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: