contains

Whether b occurs in a.

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls a null argument gives null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses contains, over the example tables.

Hint
from customers
derive {s = starts_with(name, "c"), e = ends_with(name, "1"), c = contains(name, "0")}

In a plan:

JSON
{
  "args": [
    {
      "col": 1
    },
    {
      "lit": "0",
      "type": {
        "kind": "utf8"
      }
    }
  ],
  "fn": "contains"
}