Operators¶
ksqlDB supports the following operators in value expressions.
The explanation for each operator includes a supporting example based on the following table:
1 2 3 4 5 6 7 |
|
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 |
|
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 2 3 4 5 |
|
Combine -> with . when using aliases:
1 |
|
Page last revised on: 2020-04-29