snowflake.snowpark.functions.object_insert¶
- snowflake.snowpark.functions.object_insert(obj: ColumnOrName, key: ColumnOrName, value: ColumnOrName, update_flag: ColumnOrName | None = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.4.0/src/snowflake/snowpark/functions.py#L4727-L4769)¶
Returns an object consisting of the input object with a new key-value pair inserted (or an existing key updated with a new value).
- Example::