Newer Version Available

This content describes an older version of this product. View Latest

String Literals

A string is a set of characters inside double quotes (").

Example: "This is a string."

This example uses valid syntax:
1accounts = load "Data";
2opps = load "0Fcyy000000002qCAA/0Fcyy000000002WCAQ";
3c = group accounts by 'Year', opps by 'Year';
4d = foreach c generate opps.Year as 'Year';
5e = filter d by Year == "2002";

Identifiers are either unquoted or enclosed in single quotation marks.

Note