length

The number of Unicode scalar values of a string.

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

Hint
from customers
derive {u = upper(name), lo = lower(name), t = trim(name), n = length(name), b = byte_length(name)}

In a plan:

JSON
{
  "args": [
    {
      "col": 1
    }
  ],
  "fn": "length"
}