or

a or b; null when either 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 or, over the example tables.

Hint
from orders
filter and(rush, qty > 1) or or(rush, price > 1e1)

In a plan:

JSON
{
  "args": [
    {
      "col": 9
    },
    {
      "args": [
        {
          "col": 4
        },
        {
          "lit": 10,
          "type": {
            "kind": "float64"
          }
        }
      ],
      "fn": "gt"
    }
  ],
  "fn": "or"
}