div_floor

Int64 quotient rounded toward negative infinity.

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

Hint
from orders
filter qty != 0
derive {t = div_trunc(id, qty), f = div_floor(id, qty)}

In a plan:

JSON
{
  "args": [
    {
      "col": 0
    },
    {
      "col": 3
    }
  ],
  "fn": "div_floor"
}