snowflake.snowpark.WhenNotMatchedClause.insert¶
- WhenNotMatchedClause.insert(assignments: Union[Iterable[Union[Column, None, bool, int, float, str, bytearray, Decimal, date, datetime, time, bytes, NaTType, float64, list, tuple, dict]], Dict[str, Union[Column, None, bool, int, float, str, bytearray, Decimal, date, datetime, time, bytes, NaTType, float64, list, tuple, dict]]]) WhenNotMatchedClause[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/table.py#L176-L231)¶
Defines an insert action for the not-matched clause and returns an updated
WhenNotMatchedClausewith the new insert action added.- Parameters:
assignments – A list of values or a
dictthat associates the names of columns with the values that should be inserted. The value ofassignmentscan either be a literal value or aColumnobject.
Examples:
Note
An exception will be raised if this method is called more than once on the same
WhenNotMatchedClauseobject.