starts_with

Whether a starts with b (bytewise).

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

Hint
from customers
derive {s = starts_with(name, "c"), e = ends_with(name, "1"), c = contains(name, "0")}

In a plan:

JSON
{
  "args": [
    {
      "col": 1
    },
    {
      "lit": "c",
      "type": {
        "kind": "utf8"
      }
    }
  ],
  "fn": "starts_with"
}