The append
operator allows you to append data from a source table to a target table.
../../../../example_dags/example_append.py
If a columns parameter is not provided, the append
operator assumes that the source and target tables have the same schema.
- Case 1: When the complete table needs to be appended, the
columns
parameter can be omitted. ../../../../example_dags/example_append.py
- Case 1: When the complete table needs to be appended, the
- Case 2: When only a subset of columns needs to be appended, you can pass a
list
of columns to thecolumns
parameter. ../../../../example_dags/example_snowflake_partial_table_with_append.py
- Case 2: When only a subset of columns needs to be appended, you can pass a
When the source and target tables have different schemas, you can map different column names by passing a dict
of source columns to target columns.
../../../../example_dags/example_append.py
The append
operator can't handle conflicts that may arise while appending data. If you want to handle those scenarios, you can use the merge_operator
.
- Input dataset - Source table for the operator.
- Output dataset - Target table of the operator.