Appendix

Keywords

keyworddescription
ANDlogical and operator
ASstream or field name alias
AVGaverage function
BETWEENrange operator, used with AND
BYdo something by certain conditions, used with GROUP or ORDER
COUNTcount function
CREATEcreate a stream
DATEprefix of date constant
DAYinterval unit
FORMATspecify the format of a stream
FROMspecify where to select data from
GROUPgroup values by certain conditions, used with BY
HAVINGfilter select values by a condition
HOPPINGhopping window
INNERjoining type, used with JOIN
INSERTinsert data into a stream, used with INTO
INTERVALprefix of interval constant
INTOinsert data into a stream, used with INSERT
JOINfor joining two streams
LEFTjoining type, used with JOIN
MAXmaximum function
MINminimum function
MINUTEinterval unit
MONTHinterval unit
NOTlogical not operator
ONspecify conditions, used with JOIN
ORlogical or operator
ORDERsort values by certain conditions, used with BY
OUTERjoining type, used with JOIN
SECONDinterval unit
SELECTquery a stream
SESSIONsession window
STREAMspecify a stream, used with CREATE
SUMsum function
TIMEprefix of the time constant
TUMBLINGtumbling window
VALUESspecify inserted data, used with INSERT INTO
WEEKinterval unit
WHEREfilter selected values by a condition
WITHspecify properties when creating a stream
WITHINspecify time window when joining two streams
YEARinterval unit

Operators

operatordescription
=equal to
<>not equal to
<less than
>greater than
<=less than or equal to
>=greater than or equal to
+addition
-subtraction
*multiplication
.access field of a stream
[]access item of a map or an array
ANDlogical and operator
ORlogical or operator
NOTlogical not operator
BETWEENrange operator

Functions

functiondescription
AVGaverage
COUNTcount
MAXmaximum
MINminimum
SUMsum