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.

Creates a sorted list without duplicates of non-null grouped values.

distinct(xs:list) -> list

The distinct function returns a sorted list containing unique, non-null values in xs.

The values to deduplicate.

from {x: 1}, {x: 2}, {x: 2}, {x: 3}
summarize unique=distinct(x)
{unique: [1, 2, 3]}

Last updated: