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] [Updated] (PIG-1991) Use of leading underscore(_) in schema names not allowed
Date Tue, 12 Apr 2011 19:10:06 GMT

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

Viraj Bhat updated PIG-1991:
----------------------------

    Summary: Use of leading underscore(_) in schema names not allowed  (was: Use of underscore
in schema names)

> Use of leading underscore(_) in schema names not allowed
> --------------------------------------------------------
>
>                 Key: PIG-1991
>                 URL: https://issues.apache.org/jira/browse/PIG-1991
>             Project: Pig
>          Issue Type: Wish
>          Components: grunt
>    Affects Versions: 0.9.0
>            Reporter: Viraj Bhat
>
> I have a Pig script which uses underscore in its schema name (_a)
> {code}
> a = load 'test.txt' as (_a:long, b:chararray);
> dump a;
> {code}
> This causes an error in Pig:
> {quote}
> <line 1, column 24>  Unexpected character '_'
> 2011-04-12 11:58:59,624 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line
1, column 24>  Unexpected character '_'
> {quote}
> Stack trace:
> Pig Stack Trace
> ---------------
> ERROR 1200: <line 1, column 24>  Unexpected character '_'
> Failed to parse: <line 1, column 24>  Unexpected character '_'
>         at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:83)
>         at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1555)
>         at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1527)
>         at org.apache.pig.PigServer.registerQuery(PigServer.java:582)
>         at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:917)
>         at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:386)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:176)
>         at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:152)
>         at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:76)
>         at org.apache.pig.Main.run(Main.java:489)
>         at org.apache.pig.Main.main(Main.java:108)
> ================================================================================
> Schema names should be allowed to have underscores.
> Viraj

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

Mime
View raw message