Redshift Analytical Function Support

TDV supports the analytical functions listed in the table below for Redshift.

Redshift Analytical Function

Notes

AVG

DISTINCT and ALL supported.

COUNT

DISTINCT and ALL supported. BLOB not supported.

FIRST_VALUE

IGNORENULLS and RESPECTNULLS supported.

LAG

IGNORENULLS and RESPECTNULLS supported.

LAST_VALUE

IGNORENULLS and RESPECTNULLS supported.

LEAD

IGNORENULLS and RESPECTNULLS supported.

MAX

DISTINCT and ALL supported.

MIN

DISTINCT supported.

SUM

DISTINCT and ALL supported.

VARIANCE

DISTINCT and ALL supported. Maps to VAR_SAMP.