[ 
https://issues.apache.org/jira/browse/PIG-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486674#comment-13486674
 ] 

Cheolsoo Park commented on PIG-2881:
------------------------------------

Hi Joel,

I think that I know what's the problem. In fact, this is an issue with the test 
code as I see it. Let's look at one of error messages:
{code}
expected:<[hdfs://joe-desktop:49682]/test> but was:<[]/test>
{code}
If you look at the test code in {{TestLoad.java}}, 
{{hdfs://joe-desktop:49682/}} is supposed to be replaced by {{/}} as follows:
{code}
p.replaceAll("hdfs://[0-9a-zA-Z:\\.]*/", "/")
{code}
But it isn't. Why? Because your hostname {{joe-desktop:49682}} includes {{-}}, 
so it doesn't match the reg. exp. {{[0-9a-zA-Z:\\.]*}}.

So either you can change your hostname removing {{-}}, or you can fix the reg. 
exp. so that your hostname can be matched. I would recommend to do the later.

Thanks!
                
> Add SUBTRACT eval function
> --------------------------
>
>                 Key: PIG-2881
>                 URL: https://issues.apache.org/jira/browse/PIG-2881
>             Project: Pig
>          Issue Type: New Feature
>          Components: piggybank
>    Affects Versions: 0.10.0
>            Reporter: Joel Costigliola
>            Priority: Minor
>         Attachments: Subtract.java, SubtractTest.java, 
> TEST-org.apache.pig.test.TestLoad.txt, TEST-org.apache.pig.test.TestStore.txt
>
>
> Close to DIFF function but SUBTRACT(bag1, bag2) will subtract elements of 
> bag2 from bag1.
>   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to