snowflake.snowpark.functions.object_insert¶
- snowflake.snowpark.functions.object_insert(obj: Union[Column, str], key: Union[Column, str], value: Union[Column, str], update_flag: Optional[Union[Column, str]] = None) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L5689-L5731)¶
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::