Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Takes the first non-null grouped value.

first(xs:list) -> any

The first function returns the first non-null value in xs.

The values to search.

from {x: null}, {x: 2}, {x: 3}
summarize first_value=first(x)
{first_value: 2}

Last updated: