Newer Version Available
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*/