Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # dev >> Is "void" as reserved keyword? Docs do not mention it


Copy link to this message
-
Is "void" as reserved keyword? Docs do not mention it
Not sure if this is proof that it is a reserved work but I here is what I
am seeing:

-- no error
grunt> v = LOAD 'test.data' USING PigStorage(' ') AS (id: int, val:
chararray);

-- error with known reserved keyword
grunt> and = LOAD 'test.data' USING PigStorage(' ') AS (id: int, val:
chararray);
2013-07-01 16:29:02,806 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: <line 2, column 0>  mismatched input 'and' expecting EOF

-- error with void
grunt> void = LOAD 'test.data' USING PigStorage(' ') AS (id: int, val:
chararray);
2013-07-01 16:30:54,145 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 1200: <line 3, column 0>  mismatched input 'void' expecting EOF

I think the docs just need to be changed to reflect this.

Sergey
+
Aniket Mokashi 2013-07-02, 00:30
+
Aniket Mokashi 2013-07-02, 00:31
+
Sergey Goder 2013-07-02, 01:11
+
Sergey Goder 2013-07-02, 02:48
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB