Click to copy
Functions And Operators • Reviewed for ksqlDB 0.29
How to Use Operators in ksqlDB
In ksqlDB, operators are functions built into the language — they provide many common operations you will need:
AND
,OR
andNOT
=
,!=
,<
,<=
,>
,>=
- string
LIKE
pattern - string
NOT LIKE
pattern - value
IS NULL
- value
IS NOT NULL
+
,-
,*
,/
,%
+
,||
: to concatenate two strings together
- timestamp
AT
timezone BETWEEN
time_fieldAND
time_fieldNOT BETWEEN
time_fieldAND
time_field
[]
: get the element at the index as of[1]
->
: get the field from struct as ofstruct->field
.
Below are some common use cases on when you will need them:
Was this article helpful?