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.
--Load a data stream.
a = load "myData";
You can put a comment at the end of a line of SAQL
code.
a = load "myData"; --Load a data stream.
To comment a line of SAQL code, add two hyphens at the beginning of the
line.
--The following line is commented out:
--a = load "myData";
Multi-Line Comments
Here’s an example of a multi-line comment.
q = load "campaign_data";
q = group q by Owner;
q = foreach q generate count() as 'count';
/*
q = limit q 5;
*/