or_kleene

Kleene or: true or null is true.

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

Hint
from orders
filter rush or qty > 5

In a plan:

JSON
{
  "args": [
    {
      "col": 9
    },
    {
      "args": [
        {
          "col": 3
        },
        {
          "lit": 5,
          "type": {
            "kind": "int64"
          }
        }
      ],
      "fn": "gt"
    }
  ],
  "fn": "or_kleene"
}