pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Graham (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-2866) PigServer fails with macros without a script file
Date Mon, 13 Aug 2012 21:28:38 GMT

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

Bill Graham updated PIG-2866:
-----------------------------

    Attachment: PIG-2866.2.patch

Good call. Here's a patch that changes my new test and the existing tests to use mock.Storage.
                
> PigServer fails with macros without a script file
> -------------------------------------------------
>
>                 Key: PIG-2866
>                 URL: https://issues.apache.org/jira/browse/PIG-2866
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>             Fix For: 0.11
>
>         Attachments: PIG-2866.1.patch, PIG-2866.2.patch
>
>
> Making a call to {{PigServer.registerQuery}} with an {{InputStream}} will fail if the
script contains a macro. This is because {{QueryParserDriver.makeMacroDef}} requires a filename.
{{QueryParserDriver.makeMacroDef}} should be changed to not assume that the script input is
from a file.

--
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

        

Mime
View raw message