snowflake.snowpark.functions.object_pick¶
- snowflake.snowpark.functions.object_pick(obj: Union[Column, str], key1: Union[Column, str], *keys: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L5734-L5767)¶
Returns a new OBJECT containing some of the key-value pairs from an existing object.
To identify the key-value pairs to include in the new object, pass in the keys as arguments, or pass in an array containing the keys.
If a specified key is not present in the input object, the key is ignored.
- Example::