raw_invoices
table in your PostgreSQL database. All records for a given batch are tagged with the same batch_id
.
The Flow Version invoice_processor:v1
is configured in the Lume UI with:
- Source Connector: Your PostgreSQL database.
- Source Tables:
raw_invoices
. - Filtering Logic: A
WHERE
clause likebatch_id = '{source_path}'
. - Target Connector: Your Snowflake data warehouse.
- Target Table:
clean_invoices
.
Sample Input
(Records in the PostgreSQLraw_invoices
table where batch_id
matches the source_path
)
batch_id | invoice_id | customer_id | amount |
---|---|---|---|
… | inv_123 | cust_abc | 100.50 |
… | inv_124 | cust_xyz | 75.00 |
Sample Output
(New records created in the Snowflakeclean_invoices
table by the Lume pipeline)
invoiceId | customerId | amountCents | processedAt |
---|---|---|---|
INV-123 | CUST-ABC | 10050 | 2024-07-30T10:00:00Z |
INV-124 | CUST-XYZ | 7500 | 2024-07-30T10:00:00Z |
For production workflows, consider using Webhooks instead of
run.wait()
for more efficient, event-driven monitoring.