pig的注释格式共有两种:
If you place Pig Latin statements in a script, the script can include comments.
-
For multi-line comments use /* …. */
-
For single line comments use --
/* myscript.pig My script includes three simple Pig Latin Statements. */ A = LOAD 'student' USING PigStorage() AS (name:chararray, age:int, gpa:float); -- load statement B = FOREACH A GENERATE name; -- foreach statement DUMP B; --dump statement