FAQ
explicit split causes name to be dropped from describe
------------------------------------------------------

Key: PIG-414
URL: https://issues.apache.org/jira/browse/PIG-414
Project: Pig
Issue Type: Bug
Affects Versions: types_branch
Reporter: Olga Natkovich
Priority: Minor
Fix For: types_branch


A = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
B = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
split A into A1 if name eq 'foo', A2 if name eq 'bar';
C = cogroup A1 by name, B by name;
describe C;
C: {group: chararray,{name: chararray,age: integer,gpa: float},B: {name: chararray,age: integer,gpa: float}}

Note that name of A1 is missing from dewcribe

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Alan Gates (JIRA) at Sep 11, 2008 at 3:14 pm
    [ https://issues.apache.org/jira/browse/PIG-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Alan Gates reassigned PIG-414:
    ------------------------------

    Assignee: Santhosh Srinivasan

    This affects more than just describe. If you have a query like:

    {code}
    a = load 'infile';
    split a into a1 if $0 > 'm', a2 if $0 <= 'm';
    b = cogroup a1 by $1, a2 by $1;
    c = foreach b generate flatten(a1), flatten(a2);
    store c into 'outfile';
    {code}

    it will fail saying that a1 and a2 are not valid aliases in b at the foreach line.

    explicit split causes name to be dropped from describe
    ------------------------------------------------------

    Key: PIG-414
    URL: https://issues.apache.org/jira/browse/PIG-414
    Project: Pig
    Issue Type: Bug
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Santhosh Srinivasan
    Priority: Minor
    Fix For: types_branch


    A = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    B = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    split A into A1 if name eq 'foo', A2 if name eq 'bar';
    C = cogroup A1 by name, B by name;
    describe C;
    C: {group: chararray,{name: chararray,age: integer,gpa: float},B: {name: chararray,age: integer,gpa: float}}
    Note that name of A1 is missing from dewcribe
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Santhosh Srinivasan (JIRA) at Sep 12, 2008 at 6:02 pm
    [ https://issues.apache.org/jira/browse/PIG-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Santhosh Srinivasan reassigned PIG-414:
    ---------------------------------------

    Assignee: Pradeep Kamath (was: Santhosh Srinivasan)

    Assigning the bug to Pradeep, who has a fix.
    explicit split causes name to be dropped from describe
    ------------------------------------------------------

    Key: PIG-414
    URL: https://issues.apache.org/jira/browse/PIG-414
    Project: Pig
    Issue Type: Bug
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Pradeep Kamath
    Priority: Minor
    Fix For: types_branch


    A = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    B = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    split A into A1 if name eq 'foo', A2 if name eq 'bar';
    C = cogroup A1 by name, B by name;
    describe C;
    C: {group: chararray,{name: chararray,age: integer,gpa: float},B: {name: chararray,age: integer,gpa: float}}
    Note that name of A1 is missing from dewcribe
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Olga Natkovich (JIRA) at Sep 12, 2008 at 6:59 pm
    [ https://issues.apache.org/jira/browse/PIG-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich resolved PIG-414.
    --------------------------------

    Resolution: Fixed

    This issue has been resolved by the patch to PIG-407
    explicit split causes name to be dropped from describe
    ------------------------------------------------------

    Key: PIG-414
    URL: https://issues.apache.org/jira/browse/PIG-414
    Project: Pig
    Issue Type: Bug
    Affects Versions: types_branch
    Reporter: Olga Natkovich
    Assignee: Pradeep Kamath
    Priority: Minor
    Fix For: types_branch


    A = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    B = load 'studenttab10k' as (name: chararray, age: int, gpa: float);
    split A into A1 if name eq 'foo', A2 if name eq 'bar';
    C = cogroup A1 by name, B by name;
    describe C;
    C: {group: chararray,{name: chararray,age: integer,gpa: float},B: {name: chararray,age: integer,gpa: float}}
    Note that name of A1 is missing from dewcribe
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedSep 4, '08 at 9:32p
activeSep 12, '08 at 6:59p
posts4
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 4 posts

People

Translate

site design / logo © 2022 Grokbase