An example of processing data from a relational database like PostgreSQL or Snowflake.
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:
raw_invoices
.WHERE
clause like batch_id = '{source_path}'
.clean_invoices
.raw_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 |
clean_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 |
run.wait()
for more efficient, event-driven monitoring.