split
a cut at every occurrence of b, as a list; an empty b gives the characters.
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 split, over the example tables.
from customers
derive {full = concat(name, "-", region ?? "none"), r = replace(name, "c", "C"), parts = split(name, "0"), mid = substring(name, start: 2, length: 2)}In a plan:
{
"args": [
{
"col": 1
},
{
"lit": "0",
"type": {
"kind": "utf8"
}
}
],
"fn": "split"
}