Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Identifiers

SAQL identifiers are case-sensitive and must be enclosed in single quotation marks (').

Identifiers that are enclosed in quotation marks can contain any character that a string can contain.

This example uses valid syntax:
1q = load "Opportunity";
2
3--'Stage' is enclosed in single quotes because it is a field. "08 - Closed Won" is enclosed in double quotes because it is a string.
4q = filter q by 'Stage' == "08 - Closed Won";
5q = group q by 'Account_Owner';
6q = foreach q generate 'Account_Owner' as 'Account_Owner', count() as 'count';

This example is not valid because you can't use double quotes for an identifier.

1--this should be 'Account_Owner' in single quotes
2q = group q by "Account_Owner";