OBJECT_AGG

functionsupportedCore SQL functions

docs.snowflake.com ↗

Aggregate functionsWindow functionsSemi-structured and structured data functions

Returns one OBJECT per group. For each (key, value) input pair, where key must be a VARCHAR and value must be a VARIANT, the resulting OBJECT contains a key:value field.

Syntax

supportedpartialnot supportednot scored

Aggregate function

OBJECT_AGG(<key>, <value>)

Window function

OBJECT_AGG(<key>, <value>) OVER ( [ PARTITION BY <expr2> ] )

Usage notes