in¶
Description¶
Returns true if the expression matches with any value in the given set.
Return type¶
bool
Domain¶
This is a scalar function (calculates a single output value for a single input row.)
Categories¶
Usage¶
in(expression, choice_1, choice_2, ...)
Argument |
Type |
Optional |
Repeatable |
Restrictions |
---|---|---|---|---|
expression |
storable value |
no |
no |
none |
choice |
variant |
no |
yes |
none |
Examples¶
filter in(OBSERVATION_KIND, 'http', 'system', 'grpc')
Returns true where OBSERVATION_KIND is either ‘http’, ‘system’ or ‘grpc’