1. 注释方式
a) . --
b). /* */
示例:
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.
*/
-- Query Phrase Popularity (local mode)
2. 关键字用大写表示
示例:
-- Use the PigStorage function to load the excite log file into the raw bag as an array of records.
-- Input: (user,time,query)
raw = LOAD 'excite-small.log' USING PigStorage('\t') AS (user, time, query);
3. 等号“=” 两端用一个空格隔开
示例:
ngramed2 = DISTINCT ngramed1;