concat

The strings joined; null when any is null.

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 concat, over the example tables.

Hint
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:

JSON
{
  "args": [
    {
      "col": 1
    },
    {
      "lit": "-",
      "type": {
        "kind": "utf8"
      }
    },
    {
      "args": [
        {
          "col": 2
        },
        {
          "lit": "none",
          "type": {
            "kind": "utf8"
          }
        }
      ],
      "fn": "coalesce"
    }
  ],
  "fn": "concat"
}