[ https://issues.apache.org/jira/browse/PIG-3293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Noguchi resolved PIG-3293. ------------------------------- Resolution: Duplicate Fix Version/s: 0.13.0 Originally PIG-3295 was handling a specific case when each union-ed field was from the same loader. But the patch grew to handle the case when union-ed field came from the two separate loaders but both having the same loadcaster. Closing as duplicate. > Casting fails after Union from two data sources&loaders > ------------------------------------------------------- > > Key: PIG-3293 > URL: https://issues.apache.org/jira/browse/PIG-3293 > Project: Pig > Issue Type: Bug > Reporter: Koji Noguchi > Priority: Minor > Fix For: 0.13.0 > > Attachments: pig-3293-test-only-v01.patch > > > Script similar to > {noformat} > A = load 'data1' using MyLoader() as (a:bytearray); > B = load 'data2' as (a:bytearray); > C = union onschema A,B; > D = foreach C generate (chararray)a; > Store D into './out'; > {noformat} > fails with > java.lang.Exception: org.apache.pig.backend.executionengine.ExecException: > ERROR 1075: Received a bytearray from the UDF. Cannot determine how to > convert the bytearray to string. > Both MyLoader and PigStorage use the default Utf8StorageConverter. -- This message was sent by Atlassian JIRA (v6.1#6144)