hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Bhat (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-742) Spaces could be optional in Pig syntax
Date Wed, 01 Apr 2009 00:19:50 GMT
Spaces could be optional in Pig syntax
--------------------------------------

                 Key: PIG-742
                 URL: https://issues.apache.org/jira/browse/PIG-742
             Project: Pig
          Issue Type: Wish
          Components: grunt
    Affects Versions: 0.1.0
            Reporter: Viraj Bhat
            Priority: Minor
             Fix For: 0.1.0


The following Pig statements generate an error if there is no space between A  and "="
{code}
A=load 'quf.txt' using PigStorage() as (q, u, f:long);

B = group A by (q);

C = foreach B {
        F = order A by f desc;
        generate F;
};
describe C;

dump C;
{code}

2009-03-31 17:14:15,959 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error
during parsing. Encountered
" <PATH> "A=load "" at line 1, column 1.
Was expecting one of:
    <EOF> 
    "cat" ...
    "cd" ...
    "cp" ...
    "copyFromLocal" ...
    "copyToLocal" ...
    "dump" ...
    "describe" ...
    "aliases" ...
    "explain" ...
    "help" ...
    "kill" ...
    "ls" ...
    "mv" ...
    "mkdir" ...
    "pwd" ...
    "quit" ...
    "register" ...
    "rm" ...
    "rmf" ...
    "set" ...
    "illustrate" ...
    "run" ...
    "exec" ...
    "scriptDone" ...
    "" ...
    <EOL> ...
    ";" ...

It would be nice if the parser would not expect these space requirements between an alias
and "="

-- 
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