You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/04/20 23:56:06 UTC

[jira] [Updated] (PIG-2000) Pig gives incorrect error message dealing with scalar projection

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

Xuefu Zhang updated PIG-2000:
-----------------------------

    Fix Version/s:     (was: site)
                   0.9.0

> Pig gives incorrect error message dealing with scalar projection
> ----------------------------------------------------------------
>
>                 Key: PIG-2000
>                 URL: https://issues.apache.org/jira/browse/PIG-2000
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>
> For the following query:
> A = load 'x' as (u:tuple(x,y),v);
> B = load 'y';
> C = foreach B generate $0, A.u.x;
> error msg in 0.8:
> ERROR 1000: Error during parsing. Invalid alias: x in {u: (x: bytearray,y: bytearray),v: bytearray}
> error msg in 0.9:
> ERROR 1200: Pig script failed to parse: <line 4, column 27> Invalid scalar projection: A
> Both messages are not clear enough. For scalar support, we only support one level, which gives a syntax of R.f format.

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