[ 
https://issues.apache.org/jira/browse/PIG-2729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johannes Schwenk updated PIG-2729:
----------------------------------

    Fix Version/s: 0.10.0
     Release Note: Import search path property pig.import.search.path is now 
correctly used...
           Status: Patch Available  (was: Open)

This should fix the issue. I ran the tests in 
org.apache.pig.test.TestMacroExpansion against this. Something is really borked 
here, since the tests seem to be depending on each other. The (fixed, see 
above) test importUsingSearchPathTest now completes successfully. The test 
importTwoFilesTest fails however, when executed together with the other tests. 
but also succeeds if run as the only test in the class. Renaming mytest1.pig 
and mytest2.pig in the test to something different made it pass also, so it 
might be a cleanup issue.

So this patch should definitely work, but the tests for the class should be 
reworked and included in the test/unit-tests file. I will open a separate issue 
on that.
                
> Macro expansion does not use pig.import.search.path - UnitTest borked
> ---------------------------------------------------------------------
>
>                 Key: PIG-2729
>                 URL: https://issues.apache.org/jira/browse/PIG-2729
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0, 0.9.2
>         Environment: pig-0.9.2 and pig-0.10.0, hadoop-0.20.2 from Clouderas 
> distribution cdh3u3 on Kubuntu 12.04 64Bit.
>            Reporter: Johannes Schwenk
>             Fix For: 0.10.0
>
>         Attachments: test-macros.tar.gz
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to