You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2014/01/15 00:43:19 UTC

[jira] [Commented] (PIG-3664) Piggy Bank XPath UDF can't be called

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

Daniel Dai commented on PIG-3664:
---------------------------------

getArgToFuncMapping still better cuz we can capture schema mismatch in the frontend. I would prefer fix it rather than get rid of it.

> Piggy Bank XPath UDF can't be called
> ------------------------------------
>
>                 Key: PIG-3664
>                 URL: https://issues.apache.org/jira/browse/PIG-3664
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Nezih Yigitbasi
>            Assignee: Nezih Yigitbasi
>            Priority: Blocker
>         Attachments: PIG-3664.patch
>
>
> When I try to call XPath UDF to process a very simple XML with Pig 0.12 I get the problem:
> 2014-01-13 16:14:19,530 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1045: 
> <line 3, column 25> Could not infer the matching function for org.apache.pig.piggybank.evaluation.xml.XPath as multiple or none of them fit. Please use an explicit cast. I guess the XPath UDF overrides the getArgToFuncMapping() in an incorrect way. A fixed is attached.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)