Havn
PlatformLoreDocs Sign in
KernelBosonHintLore
  • Verbs 48
  • Functions 97
    • add
    • sub
    • mul
    • add_wrapping
    • sub_wrapping
    • mul_wrapping
    • div
    • div_trunc
    • div_floor
    • rem
    • neg
    • abs
    • eq
    • ne
    • lt
    • le
    • gt
    • ge
    • is_distinct_from
    • is_not_distinct_from
    • is_null
    • is_not_null
    • is_nan
    • and
    • or
    • not
    • and_kleene
    • or_kleene
    • coalesce
    • if_else
    • cast
    • round
    • sqrt
    • exp
    • ln
    • ln_1p
    • expm1
    • sin
    • cos
    • erf
    • lgamma
    • pow
    • atan2
    • length
    • byte_length
    • lower
    • upper
    • trim
    • starts_with
    • ends_with
    • contains
    • regex_match
    • approx_contains
    • concat
    • replace
    • split
    • substring
    • year
    • month
    • day
    • hour
    • minute
    • second
    • weekday
    • quarter
    • day_of_year
    • date_trunc
    • add_months
    • assume_timezone
    • to_local
    • count
    • count_all
    • count_distinct
    • mode
    • median
    • quantile
    • sum
    • fsum
    • mean
    • min
    • max
    • var_samp
    • stddev_samp
    • first
    • last
    • list
    • string_agg
    • approx_count_distinct
    • approx_quantile
    • approx_frequent
    • bool_and
    • bool_or
    • row_number
    • rank
    • dense_rank
    • lag
    • lead
  • Plan ops 1
  • Diagnostics 1

Nothing in Hint matches.

Docs/ Hint/ Functions

coalesce

The first argument that is not null.

ScalarDeterministic

Flags

Flag Value
Kind scalar
Nulls null only when every argument is null
Deterministic yes
Order matters no
Decomposable no

Example

A pipeline from the language's tested corpus that uses coalesce, over the example tables.

Hint
from orders
filter not is_nan(price ?? 0e0)

In a plan:

JSON
{
  "args": [
    {
      "col": 4
    },
    {
      "lit": 0,
      "type": {
        "kind": "float64"
      }
    }
  ],
  "fn": "coalesce"
}
Previousor_kleene Nextif_else

On this page

  1. Flags
  2. Example
  1. Flags
  2. Example
Havn Platform Lore Docs