Operators¶
ksqlDB supports the following operators in value expressions.
Arithmetic¶
The usual arithmetic operators (+,-,/,*,%
) may be
applied to numeric types, like INT, BIGINT, and DOUBLE:
1 |
|
Concatenation¶
The concatenation operator (+,||
) can be used to
concatenate STRING values.
1 |
|
You can use the +
operator for multi-part concatenation, for
example:
1 2 3 4 5 6 7 8 9 10 |
|
In¶
The IN operator enables specifying multiple values in a WHERE
clause.
It provides the equivalent of multiple OR
conditions.
Currently, this is only supported for Pull Queries.
1 |
|
Source Dereference¶
The source dereference operator (.
) can be used
to specify columns by dereferencing the source stream or table.
1 |
|
Subscript¶
The subscript operator ([subscript_expr]
) is used to
reference the value at an array index or a map key.
1 |
|
STRUCT dereference¶
Access nested data by declaring a STRUCT and using the
dereference operator (->
) to access its fields:
1 |
|
Combine ->
with .
when using aliases:
1 |
|
For more information on nested data, see STRUCT.