On this page
Write actions¶
Every write sets type: write and a write_target mapping. Choose a
target and mode for a complete example, target settings and action fields.
For worked examples and help choosing a target, see Write.
Action fields¶
These fields sit on the action, alongside write_target.
Field |
Type |
Default |
Requirement and behaviour |
|---|---|---|---|
|
string |
required |
Action name, unique within the flowgroup. |
|
string |
required |
Always |
|
string / list |
conditional |
Input view(s). Standard streaming writes and most sinks accept a list. CDC, replace, replace_where and foreachbatch use one view. Snapshot CDC takes its source inside |
|
mapping |
required |
Target settings; |
|
string |
derived |
Comment/docstring for the generated flow or view. |
|
string |
|
|
|
bool |
|
Emits |
|
bool / list |
— |
Accepted on the model; writes do not add metadata columns. Select columns on load or supported transform actions instead. |
|
list[string] |
— |
Extra upstream table/view references. See Dependency analysis reference. |
Streaming table¶
mode: cdc¶
mode: snapshot_cdc¶
mode: replace¶
mode: replace_where¶
Materialized view¶
Sink¶
Emitted constructs¶
standard:dp.create_streaming_table(...)(whencreate_tableis true) plus one@dp.append_flow(target=, name=, comment=)decorator per source view.cdc:dp.create_streaming_table(...)(whencreate_tableis true) plusdp.create_auto_cdc_flow(...).snapshot_cdc:dp.create_streaming_table(...)(always) plusdp.create_auto_cdc_from_snapshot_flow(...).replace:dp.create_streaming_table(...)(always) plus a single@dp.replace_flow(target=, name=, replace_using=, sequence_by=, comment=)decorator.replace_where: a single@dp.table(name=, comment=, table_properties=, replace_where=)decorator over a batch read, with nodp.create_streaming_table(...); the table and its flow are one statement.
sink_type-specific fields¶
See Sink for Delta, Kafka, Event Hubs, foreachbatch and custom sinks.
uc_tagging config block¶
The project block is documented in Unity Catalog tagging.
Tagging error handling¶
See Unity Catalog tagging for warnings and event-log diagnosis.