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 2015/11/02 21:10:27 UTC

[jira] [Updated] (PIG-4696) Empty map returned by a streaming_python udf wrongly contains a null key

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

Daniel Dai updated PIG-4696:
----------------------------
    Fix Version/s: 0.15.1

Backport to 0.15 branch.

> Empty map returned by a streaming_python udf wrongly contains a null key
> ------------------------------------------------------------------------
>
>                 Key: PIG-4696
>                 URL: https://issues.apache.org/jira/browse/PIG-4696
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.15.0
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>            Priority: Minor
>             Fix For: 0.16.0, 0.15.1
>
>         Attachments: PIG-4696.1.patch
>
>
> To reproduce, please run the following query-
> {code}
> b = FOREACH a GENERATE (map[])udfs.empty_dict();
> DUMP b;
> {code}
> where empty_dict() is a Python udf-
> {code}
> @outputSchema("map_out: []")
> def empty_dict():
>     return {}
> {code}
> This returns {{([])}} in jython while {{(\[null#\])}} in streaming_python.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)