contains(haystack: string, needle: string) -> bool

Returns true if the str string contains the expr string (case-sensitive). For backwards compatibility reasons, this also accepts variant input values, attempts to coerce them to type string, and checks whether that coerced string contains the given substring.

See also search

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

filter contains(@.bundle_kind, "kube")

Pass through all bundle kinds that contain the string "kube".