public.orders into analytics.orders_live.
1. Prepare the destination
Createanalytics.orders_live before delivery. Its columns must match the
published SQL output, and id should be its primary key for Upsert.
2. Create connections and pipeline
Create/test a PostgreSQL source with read access topublic.orders and a
PostgreSQL destination with write access to analytics.orders_live. Then create
Orders to Analytics from Data Pipelines and open it.
3. Configure Source
- Open Source.
- Click Discover catalog.
- Enable
public.ordersand keep Full table for the first run. - Preview rows and click Save stream settings.
4. Add the destination
- Open Destinations and click Add destination.
- Select the PostgreSQL connection and set the target schema to
analytics. - Save the destination.
5. Create and publish SQL
Open Transformations, select the destination, and create a transformation usingpublic.orders as input:
6. Assign destination output
Open the destination editor. Under Published output targets, enteranalytics.orders_live, use id as the Upsert key, create/verify the table if
needed, and save.
7. Run and verify
Open Overview, click Validate pipeline, then click Run all. In Runs, confirm success, rows written, the published revision, targetanalytics.orders_live, and any warnings.
8. Move to Incremental
After the Full table run succeeds:- Open Source.
- Change
public.ordersto Incremental. - Enter
updated_atas the cursor and save stream settings. - Run manually again and inspect Runs.
- Add a schedule in Settings.