Skip to Content

This page lists 5 functions in the spql.agg namespace generated from the default SPQL function catalog.

FunctionKindSummary
spql.agg.countaggregate functionCount non-null values.
spql.agg.firstaggregate functionReturn the first value.
spql.agg.lastaggregate functionReturn the last value.
spql.agg.minmaxaggregate functionReturn the minimum and maximum values.
spql.agg.sumaggregate functionSum values.

spql.agg.count

Kind: aggregate function

Count non-null values.

Signature

spql.agg.count(value)

Parameters

NameRequiredDescription
valueyesNo parameter docs.

Returns

The count over the aggregate input.

spql.agg.first

Kind: aggregate function

Return the first value.

Signature

spql.agg.first(value)

Parameters

NameRequiredDescription
valueyesNo parameter docs.

Returns

The first value in aggregate order.

spql.agg.last

Kind: aggregate function

Return the last value.

Signature

spql.agg.last(value)

Parameters

NameRequiredDescription
valueyesNo parameter docs.

Returns

The last value in aggregate order.

spql.agg.minmax

Kind: aggregate function

Return the minimum and maximum values.

Signature

spql.agg.minmax(value)

Parameters

NameRequiredDescription
valueyesNo parameter docs.

Returns

A struct containing the minimum and maximum values.

spql.agg.sum

Kind: aggregate function

Sum values.

Signature

spql.agg.sum(value)

Parameters

NameRequiredDescription
valueyesNo parameter docs.

Returns

The sum over the aggregate input.

Last updated on