You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2017/05/17 17:27:04 UTC

[jira] [Commented] (PIG-5235) Typecast with as-clause fails for tuple/bag with an empty schema

    [ https://issues.apache.org/jira/browse/PIG-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16014449#comment-16014449 ] 

Koji Noguchi commented on PIG-5235:
-----------------------------------

Another display issue I noticed while debugging, 'describe' now shows the types BEFORE the typecast.   For example, {{describe b}} using the script in description would show 

{noformat}b: {mytuple2: (name: bytearray,age: bytearray)}{noformat}

since as part of PIG-2315, I've reset the original user defined schema and let the next typecast foreach take care of this.  Trying to see if I can fix this but may push to another jira.

> Typecast with as-clause fails for tuple/bag with an empty schema
> ----------------------------------------------------------------
>
>                 Key: PIG-5235
>                 URL: https://issues.apache.org/jira/browse/PIG-5235
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>         Attachments: pig-5235-v01.patch
>
>
> Following script fails with trunk(0.17).
> {code}
> a = load 'test.txt' as (mytuple:tuple (), gpa:float);
> b = foreach a generate mytuple as (mytuple2:(name:int, age:double));
> store b into '/tmp/deleteme';
> {code}
> 2017-05-16 09:52:31,280 \[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. null
> (This is a continuation from the as-clause fix at PIG-2315 and follow up jira PIG-4933)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)