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.
Comments
To add a single-line comment in SAQL, preface your comment with two hyphens (--). To add a multi-line comment, start your comment with a forward
slash and asterisk (/*) and end it with an asterisk and
forward slash (*/).
Single-Line Comments
Here’s an example of a single-line comment on its own line.
1--Load a data stream.
2a = load "myData";You can put a comment at the end of a line of SAQL
code.
1a = load "myData"; --Load a data stream.To comment a line of SAQL code, add two hyphens at the beginning of the
line.
1--The following line is commented out:
2--a = load "myData";Multi-Line Comments
Here’s an example of a multi-line comment.
1q = load "campaign_data";
2q = group q by Owner;
3q = foreach q generate count() as 'count';
4/*
5q = limit q 5;
6*/