【pig】pig的注释格式

  • 时间:
  • 来源:互联网

pig的注释格式共有两种:

If you place Pig Latin statements in a script, the script can include comments.

  1. For multi-line comments use /* …. */

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

本文链接http://element-ui.cn/news/show-576555.aspx