concat
The strings joined; null when any is null.
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 concat, 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": "-",
"type": {
"kind": "utf8"
}
},
{
"args": [
{
"col": 2
},
{
"lit": "none",
"type": {
"kind": "utf8"
}
}
],
"fn": "coalesce"
}
],
"fn": "concat"
}