Order of Operations for Updating an Avro Schema and its Associated Database Objects
When you update an Avro schema, follow the steps below (in order) to modify the Pipeline and the Pipeline’s target table to match the updated schema.
-
Run STOP PIPELINE to detach the Pipeline.
If you are are adding a field to the schema, this step is not required. -
Using ALTER TABLE, add or remove fields from the Pipeline’s target tables.
-
Using ALTER PIPELINE or CREATE OR REPLACE PIPELINE, add or remove fields from the Pipeline.
-
Run START PIPELINE to start the Pipeline.
If you are adding a field to the schema and have not stopped the Pipeline, this step is not required.
If you add a field to the schema prior to adding the field to the Pipeline and its target table, and have not stopped the Pipeline, the Pipeline continues to run.
If you add a field to the schema after adding the field to the Pipeline and its target table, and have not stopped the Pipeline, the Pipeline continues to run.
Last modified: April 28, 2021