snowflake.snowpark.functions.object_pick¶
- snowflake.snowpark.functions.object_pick(obj: ColumnOrName, key1: ColumnOrName, *keys: ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L3845-L3878)¶
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::