snowflake.snowpark.functions.object_agg¶
- snowflake.snowpark.functions.object_agg(key: ColumnOrName, value: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L3683-L3707)¶
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.
Example: