[
https://issues.apache.org/jira/browse/PIG-5209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Noguchi resolved PIG-5209.
-------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Fix Version/s: 0.17.0
Thanks for the review Rohini!
Committed to trunk.
> Cross product on flatten(map) fails with ClassCastException
> -----------------------------------------------------------
>
> Key: PIG-5209
> URL: https://issues.apache.org/jira/browse/PIG-5209
> Project: Pig
> Issue Type: Bug
> Components: impl
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Minor
> Fix For: 0.17.0
>
> Attachments: pig-5209-v01.patch
>
>
> This issue started after we added a new flatten on map feature at PIG-5085.
> For script like
> {code}
> B = foreach A GENERATE FLATTEN(map1), FLATTEN(map2);
> {code}
> it fails with
> {noformat}
> Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to
> org.apache.pig.data.DataBag
> at
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:514)
> at
> org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:233)
> ... 12 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)