DeltaMergeIntoMatchedUpdateClause — WHEN MATCHED THEN UPDATE Clause¶
DeltaMergeIntoMatchedUpdateClause
is a DeltaMergeIntoMatchedClause that represents WHEN MATCHED THEN UPDATE
clauses in the following:
UpdateAction
andUpdateStarAction
matched actions inMergeIntoTable
(Spark SQL) logical command- DeltaMergeMatchedActionBuilder.updateAll, DeltaMergeMatchedActionBuilder.update and DeltaMergeMatchedActionBuilder.updateExpr operators
Creating Instance¶
DeltaMergeIntoMatchedUpdateClause
takes the following to be created:
DeltaMergeIntoMatchedUpdateClause
is created when:
DeltaMergeMatchedActionBuilder
is requested to updateAll and addUpdateClause- DeltaAnalysis logical resolution rule is executed (and resolves
MergeIntoTable
logical command withUpdateAction
andUpdateStarAction
matched actions)
Actions¶
DeltaMergeIntoClause
actions: Seq[Expression]
actions
is part of the DeltaMergeIntoClause abstraction.
DeltaMergeIntoMatchedUpdateClause
is given Expression
s (Spark SQL) for the actions when created.
Condition¶
DeltaMergeIntoClause
condition: Option[Expression]
condition
is part of the DeltaMergeIntoClause abstraction.
DeltaMergeIntoMatchedUpdateClause
can be given Expression
s (Spark SQL) for the condition when created.
Clause Type¶
clauseType
is the following text:
Update