snowflake.snowpark.WhenNotMatchedClause.insert¶
- WhenNotMatchedClause.insert(assignments: Iterable[Column | None | bool | int | float | str | bytearray | Decimal | date | datetime | time | bytes | list | tuple | dict] | Dict[str, Column | None | bool | int | float | str | bytearray | Decimal | date | datetime | time | bytes | list | tuple | dict]) WhenNotMatchedClause[source]¶
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.