Grokbase Groups Pig dev April 2011
FAQ
Lineage need to set for every cast
----------------------------------

Key: PIG-1974
URL: https://issues.apache.org/jira/browse/PIG-1974
Project: Pig
Issue Type: Bug
Components: impl
Affects Versions: 0.9.0
Reporter: Daniel Dai
Assignee: Thejas M Nair
Fix For: 0.9.0


The following script does not cast correctly:
{code}
a = load '1.txt' as (m:map[]);
b = foreach a generate (map[chararray])m;
dump b;
{code}
Pig throw warning that it cannot cast (map[chararray]) because caster is null.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Daniel Dai (JIRA) at Apr 7, 2011 at 5:40 am
    [ https://issues.apache.org/jira/browse/PIG-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016705#comment-13016705 ]

    Daniel Dai commented on PIG-1974:
    ---------------------------------

    The issue is because lineage only set caster if the input data type is bytearray. However, if it is complex data type, we need to cast inner bytearray to real type, we still rely on caster. So we need to set caster as well.
    Lineage need to set for every cast
    ----------------------------------

    Key: PIG-1974
    URL: https://issues.apache.org/jira/browse/PIG-1974
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: 0.9.0
    Reporter: Daniel Dai
    Assignee: Thejas M Nair
    Fix For: 0.9.0


    The following script does not cast correctly:
    {code}
    a = load '1.txt' as (m:map[]);
    b = foreach a generate (map[chararray])m;
    dump b;
    {code}
    Pig throw warning that it cannot cast (map[chararray]) because caster is null.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Thejas M Nair (JIRA) at Apr 12, 2011 at 4:02 pm
    [ https://issues.apache.org/jira/browse/PIG-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Thejas M Nair updated PIG-1974:
    -------------------------------

    Attachment: PIG-1974.1.patch
    Lineage need to set for every cast
    ----------------------------------

    Key: PIG-1974
    URL: https://issues.apache.org/jira/browse/PIG-1974
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: 0.9.0
    Reporter: Daniel Dai
    Assignee: Thejas M Nair
    Fix For: 0.9.0

    Attachments: PIG-1974.1.patch


    The following script does not cast correctly:
    {code}
    a = load '1.txt' as (m:map[]);
    b = foreach a generate (map[chararray])m;
    dump b;
    {code}
    Pig throw warning that it cannot cast (map[chararray]) because caster is null.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Daniel Dai (JIRA) at Apr 12, 2011 at 6:16 pm
    [ https://issues.apache.org/jira/browse/PIG-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018961#comment-13018961 ]

    Daniel Dai commented on PIG-1974:
    ---------------------------------

    +1 if tests pass.
    Lineage need to set for every cast
    ----------------------------------

    Key: PIG-1974
    URL: https://issues.apache.org/jira/browse/PIG-1974
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: 0.9.0
    Reporter: Daniel Dai
    Assignee: Thejas M Nair
    Fix For: 0.9.0

    Attachments: PIG-1974.1.patch


    The following script does not cast correctly:
    {code}
    a = load '1.txt' as (m:map[]);
    b = foreach a generate (map[chararray])m;
    dump b;
    {code}
    Pig throw warning that it cannot cast (map[chararray]) because caster is null.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Thejas M Nair (JIRA) at Apr 12, 2011 at 6:46 pm
    [ https://issues.apache.org/jira/browse/PIG-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Thejas M Nair resolved PIG-1974.
    --------------------------------

    Resolution: Fixed

    unit tests and test-patch passed.
    Patch committed to trunk.
    Lineage need to set for every cast
    ----------------------------------

    Key: PIG-1974
    URL: https://issues.apache.org/jira/browse/PIG-1974
    Project: Pig
    Issue Type: Bug
    Components: impl
    Affects Versions: 0.9.0
    Reporter: Daniel Dai
    Assignee: Thejas M Nair
    Fix For: 0.9.0

    Attachments: PIG-1974.1.patch


    The following script does not cast correctly:
    {code}
    a = load '1.txt' as (m:map[]);
    b = foreach a generate (map[chararray])m;
    dump b;
    {code}
    Pig throw warning that it cannot cast (map[chararray]) because caster is null.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedApr 7, '11 at 5:38a
activeApr 12, '11 at 6:46p
posts5
users1
websitepig.apache.org

1 user in discussion

Thejas M Nair (JIRA): 5 posts

People

Translate

site design / logo © 2023 Grokbase