byte_length
The number of UTF-8 bytes of a string.
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 byte_length, over the example tables.
from customers
derive {u = upper(name), lo = lower(name), t = trim(name), n = length(name), b = byte_length(name)}In a plan:
{
"args": [
{
"col": 1
}
],
"fn": "byte_length"
}