contains
Whether b occurs in a.
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.
from customers
derive {s = starts_with(name, "c"), e = ends_with(name, "1"), c = contains(name, "0")}In a plan:
{
"args": [
{
"col": 1
},
{
"lit": "0",
"type": {
"kind": "utf8"
}
}
],
"fn": "contains"
}