[
https://issues.apache.org/jira/browse/PIG-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dai updated PIG-1719:
----------------------------
Attachment: (was: PIG-1719-1.patch)
> New logical plan: FieldSchema generation for BinCond is wrong
> -------------------------------------------------------------
>
> Key: PIG-1719
> URL: https://issues.apache.org/jira/browse/PIG-1719
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: 0.8.0
> Reporter: Daniel Dai
> Assignee: Daniel Dai
> Fix For: 0.8.0
>
> Attachments: PIG-1719-0.patch, PIG-1719-1.patch
>
>
> New logical plan generate incomplete schema for BinCond, if the expression
> for BinCond is of complex type. Eg,
> {code}
> a = load '1.txt' as (a0, a1:int);
> b = group a by a0;
> c = foreach b generate FLATTEN((IsEmpty(a)?{(65535)}:sequence.FIRST(a.a1)));
> {code}
> The right schema for c is (int), however, in current code, we get null
> schema. This is because BinCond should get the schema {(int)}, but we get
> empty bag {}.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.