Skip to content


DeltaMergeAction is a UnaryExpression (Spark SQL) that represents a single action in MERGE command.


DeltaMergeActions are returned when DeltaMergeIntoClause is requested to resolvedActions (for PreprocessTableMerge and MergeIntoCommand).


DeltaMergeAction is a Unevaluable expression that is resolved when DeltaMergeInto utility is used to resolveReferencesAndSchema.

Creating Instance

DeltaMergeAction takes the following to be created:

  • Target Column Names (Seq[String])
  • Expression
  • targetColNameResolved flag (default: false)

DeltaMergeAction is created when: