hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (PIG-315) Issue with cast in foreach
Date Thu, 12 Nov 2009 04:23:39 GMT

     [ https://issues.apache.org/jira/browse/PIG-315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alan Gates reassigned PIG-315:
------------------------------

    Assignee: Pi Song

> Issue with cast in foreach
> --------------------------
>
>                 Key: PIG-315
>                 URL: https://issues.apache.org/jira/browse/PIG-315
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Pradeep Kamath
>            Assignee: Pi Song
>             Fix For: 0.2.0
>
>         Attachments: PIG315.patch
>
>
> Query which causes error:
> {code}
> a = load ':INPATH:/singlefile/studenttab10k' as (name:chararray, age:int, gpa:double);
> b = foreach a generate (long)age as age, (int)gpa as gpa;
> c = foreach b generate SUM(age), SUM(gpa); 
> store c into ':OUTPATH:';\,
> {code}
> Error:
> {quote}
> 2008-07-14 16:34:42,130 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine
- Connecting to hadoop file system at: mytesthost:8020
> 2008-07-14 16:34:42,187 [main] WARN  org.apache.hadoop.fs.FileSystem - "mytesthost:8020"
is a deprecated filesystem name. Use "hdfs://mytesthost:8020/" instead.
> 2008-07-14 16:34:42,441 [main] INFO  org.apache.pig.backend.hadoop.executionengine.HExecutionEngine
- Connecting to map-reduce job tracker at: mytesthost:50020
> 2008-07-14 16:34:42,696 [main] WARN  org.apache.hadoop.fs.FileSystem - "mytesthost:8020"
is a deprecated filesystem name. Use "hdfs://mytesthost:8020/" instead.
> 2008-07-14 16:34:43,006 [main] ERROR org.apache.pig.PigServer - Problem resolving LOForEach
schema
> 2008-07-14 16:34:43,006 [main] ERROR org.apache.pig.PigServer - Severe problem found
during validation org.apache.pig.impl.plan.PlanValidationException: An unexpected exception
caused the validation to stop
> 2008-07-14 16:34:43,007 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.io.IOException:
Unable to store for alias: c
> {quote}

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


Mime
View raw message