r/ETL • • 5h ago

Automating CSV ingestion from Outlook emails into Databricks

9 Upvotes

Hi everyone,
I’m looking for suggestions on automating the ingestion of CSV files received as email attachments in Outlook into Databricks.
Has anyone implemented a solution where CSV attachments from Outlook emails are automatically picked up and ingested into Databricks through a pipeline?
I’m curious about the approaches you’ve used in production, whether through Microsoft Graph API, Power Automate, Logic Apps, or any other solution. I’d also appreciate insights on the best practices around authentication, handling multiple attachments, and orchestration.


r/ETL • • 2h ago

Re-running a load: append vs upsert vs partition overwrite. What happens when the source changes?

1 Upvotes

A job fails halfway and gets retried, or someone backfills a day. Whether that's safe depends on how the load writes. I ran a small test (SQLite 3.53.1, so only an illustration) with the same scenario for three strategies.

Source data for 2026-11-01: three rows with amounts 10, 20, 30 (sum 60). Later the source is corrected: id 2 becomes 25, and id 3 is removed.

A. Plain append, run twice:

(6, 120)    -- rows, sum

Every retry duplicates the data. Anything downstream that sums or counts is now wrong.

B. Upsert by primary key (INSERT ... ON CONFLICT(id) DO UPDATE):

run twice:                    (3, 60)
after source fix (id3 gone):  (3, 65)

Safe to re-run, and id 2 is updated. But id 3 is still there, since an upsert never deletes. The total is now 65 when the source says 35.

C. Partition overwrite (delete the day's rows, then insert, in one transaction):

run twice:                    (3, 60)
after source fix:             (2, 35)

Re-runs are safe, and the result matches the corrected source, including the deletion.

def load(rows, day):
    with db:                                   # one transaction
        db.execute("delete from t where day=?", (day,))
        db.executemany("insert into t values(?,?,?)", rows)

What this does not show, and where I'd be careful:

  • Overwrite needs a natural partition (a day, a batch id). If there isn't one, it's harder.
  • The delete+insert must be atomic. If your engine or tool doesn't give you a transaction (or an equivalent like swapping a partition), a failure between the two steps leaves the day empty.
  • Upsert can be right when the source never deletes, or when you handle deletes explicitly (soft-delete flags, tombstones, a separate reconciliation step).
  • This is a toy in one database. Warehouses and lake tables have their own mechanics (MERGE, partition overwrite, snapshots), so check yours.

My takeaway: decide how a re-run behaves before the first failure, and test it by running the job twice on purpose.

How do you handle deletes at the source in an upsert-based pipeline? And do you have a standard test, like "run twice and compare counts"?


r/ETL • • 4h ago

How to know if we should build data components as a code or use the available feature in Clause era?

Thumbnail reddit.com
1 Upvotes

r/ETL • • 1d ago

Fivetran vs Estuary for CDC heavy pipelines?

2 Upvotes

Estuary is always compared with Fivetran what do you think makes for a fair evaluation. Besides connector coverage and latency, how do you compare the billing models, backfills, schema changes, and sending one source to multiple destinations? What tends to change the decision for a real workload?


r/ETL • • 2d ago

Lightweight flat-file ingestion into HubSpot: handling schema drift and validation without full ETL bloat

2 Upvotes

Disclosure: I’m a backend engineer validating a small product for ingesting scheduled CSV/XLSX exports from SFTP/S3/storage into HubSpot (companies, contacts, deals, custom objects, associations).

Mid-market ERP/ops teams often rely on scheduled flat files rather than real-time APIs, and the failure modes are classic: encoding mismatches, renamed columns, type/enum rejections downstream, partial loads, and silent schedule misses.

Rather than starting with a massive generic ETL UI, I’m looking at a small V1 wedge first and building toward scheduled SFTP pulls, pre-import validation, and schema/mapping breakage alerts.

From an ingestion/reliability standpoint, if you’ve dealt with scheduled flat files feeding a CRM like HubSpot, what failure mode caused the worst late-night surprises?


r/ETL • • 2d ago

How do I build a data product strategy with Genie Agents for different business domains? Data Mesh on Databricks

Thumbnail
reddit.com
3 Upvotes

r/ETL • • 2d ago

Enterprise Data for AI Agents: A Guide

Thumbnail
lakeops.dev
1 Upvotes

r/ETL • • 3d ago

Thoughts about Apache Hop in 2026

9 Upvotes

I'm thinking about using Apache Hop for my company's ETL infrastructure. What downsides should I be concerned about in the short and long term?

We want open source and self hosted tools


r/ETL • • 4d ago

Replicating Stripe to Iceberg v3 on S3 Tables for under $5 a month with Duck DB

Thumbnail
inflextrace.com
1 Upvotes

r/ETL • • 4d ago

Making ETL into Apache Iceberg Tables fully inter-operable (readable by every engine/warehouse)

Post image
12 Upvotes

Recently we have published and launched support for full interoperability for Iceberg. With our special LSM index architecture feature (Read more about engineering blog : https://olake.io/blog/iceberg-interoperability-row-index/). The way it works, you can select query engine OLake Go will automatically decide which query engine support what delete format and write it accordingly.

What is OLake Go - Open-source (Apache 2) replication from databases, Kafka and S3 to Apache Iceberg and Parquet. Sources: Postgres, MySQL, MongoDB, Oracle, MSSQL, DB2, Kafka, S3.

The way Iceberg update happens is via delete files (mark the older row as delete and create new copy of the row as insert)

The tools like Debezium+Kafka+Iceberg sink is still append only or just support equality deletes. Even Flink doesn't support writing into Databricks or Snowflake managed Iceberg tables (Because it uses branching + equality).

Why you should care : A lot of data analytics and engineering today is happening with AI. AI fires 10-30x more queries than human (Recently published https://arxiv.org/abs/2509.00997). Iceberg gives you capabilities to use DuckDB kind of lightweight query engines with LLMs and on the same table you can also query using Snowflake or Databricks of the world.


r/ETL • • 4d ago

We migrated a 3.7TB MySQL RDS database with zero downtime — and no standard AWS tool could do it alone

Thumbnail
reddit.com
2 Upvotes

r/ETL • • 5d ago

Zero-Copy Data Lakehouse: A Guide

Thumbnail
lakeops.dev
6 Upvotes

r/ETL • • 5d ago

Unity Catalog naming strategy for shared corporate data

Thumbnail
reddit.com
1 Upvotes

r/ETL • • 5d ago

Incremental Load to OBT

6 Upvotes

I have one big table containing orderID, order_attributes, consignmentID, consignment_attributes, manifestID,submanifestID, trip_ID, taskID,facilityID, customer ID and associated attributes.

Composite key for this is all keys taken together.

Each constituting table has CDF enabled. Also a key could be deleted when in consignment cons 1 is updated and mapped to manifest ID 2 from 1. Then the key in big table will get deleted. Similarly manifest status change needs to be updated for all IDs it is part of.

The table has gotten too large and we need to implement incremental storage. But it is leading to long table scans. What steps would you recommend?


r/ETL • • 5d ago

Pipeline Failure vs Stale Dashboard

Thumbnail reddit.com
1 Upvotes

r/ETL • • 6d ago

Consultants / platform leads: how do you build monthly cost reports and next-year budget forecasts for clients or finance across Snowflake + Fivetran + dbt?

2 Upvotes

Spreadsheet? SELECT? Custom dashboards? How long does it take each month?


r/ETL • • 6d ago

Incremental Load to OBT

Thumbnail reddit.com
1 Upvotes

r/ETL • • 8d ago

CDC into a warehouse

4 Upvotes

Hi. What are people using for CDC in to a warehouse when they need changes to show up fast? Im comparing managed tools with a Debezium setup and trying to understand where the operational tradeoffs land.


r/ETL • • 8d ago

Real-world production reviews of Databricks Apps at scale? Looking at MDM & OLTP use cases.

4 Upvotes

We’re evaluating Databricks Apps for an internal MDM/transactional workflow serving thousands of users. We’ve done small POCs and love the native auth and Unity Catalog integration, but we want real-world production feedback before committing.

If you're running this in prod for large user bases:

Concurrency & Scaling: How does it handle hundreds of simultaneous users and concurrent writes? Any memory or session bottlenecks?

Backend Storage: Are you pairing it with Lakebase (Postgres) or an external OLTP DB for low-latency row-level writes, or hitting Delta directly?

Framework & Cost: Did you stick with Streamlit/Dash or move to FastAPI + React for state management, and how are always-on compute costs looking?

Looking for honest lessons learned or gotchas before we scale up!


r/ETL • • 8d ago

Databricks 5 Minute Features: Multiple Job Triggers

Thumbnail
youtube.com
1 Upvotes

Multiple Job Triggers is one of those features that on the surface seem really small - but it makes a great difference in your orchestration setup.

Check it out!

Documentation can be found here

https://docs.databricks.com/aws/en/jobs/triggers#add-multiple-triggers-to-a-job


r/ETL • • 8d ago

hot take - are we paying for real time data nobody actually uses?

Thumbnail reddit.com
1 Upvotes

r/ETL • • 9d ago

For teams running ClickHouse, how are you getting mutable operational data into it?

4 Upvotes

The use case is operational data from SQL Server landing in ClickHouse for analytics that needs to stay relatively current. The data is not append-only: there are updates, deletes, schema changes, and occasional backfills. The freshness target might be a few seconds or a few minutes, depending on the use case.

The obvious options seem to be:

  • Scheduled incremental loads
  • Debezium/Kafka/Connect
  • ClickPipes or another native ingestion option
  • A managed CDC platform like Striim for ClickHouse

For people who have built this, what did you choose and why?

I’m especially interested in:

  • How you handled the initial load plus CDC handoff
  • Updates/deletes and late or out-of-order records in ClickHouse
  • Schema changes and recovery/replay
  • The operational overhead you underestimated
  • Whether you would make the same architecture choice again

Would also be curious to hear from anyone who started with Kafka or a managed platform and later moved away from it.


r/ETL • • 10d ago

I got tired of spinning up environments just to move and query data, so I built an open-source local desktop ETL platform

Thumbnail
gallery
22 Upvotes

I know this sub gets flooded with weekend vibe-coded wrappers, so to be upfront: I’ve been building this for almost a year. 

I had a simple goal: build a privacy focused, no learning curve desktop ETL tool that lets analysts and developers move, transform, and query data without having to set up infrastructure or write code really.

Current state and struggle:

Pipeline generation and data analysis work reliably with frontier cloud models (scoring 50/50 in a SQL benchmark we recently published, GPT-6 Luna). Smaller local models still struggle on multi-table queries, so I’m currently building out a semantic layer with verified queries, explicit column types, table relationships, and simplified SQL output schemas, to cut down hallucinations. Any other suggestions to improve performance on locally hosted model?

So far what it can do:

Zero Environment Setup: Install on mac, Windows, or Linux 

80+ Source & Destination Connectors: Move data across relational DBs, cloud warehouses, SaaS APIs, local files, and Vector DBs in the same pipeline.

Prompt or write code (SQL, JS, Python): Execute transformations locally or on target database.

Safety**:** Includes automated code validation, schema drift notifications, and self-correcting logic to pipelines. All DML changes require approval before execution. All credentials are encrypted at rest locally and never get passed to AI.

Embedded Analytics: Query your data locally right inside the app

Next release will have MCP server connector

I’d love your honest feedback for what should change or be added.

https://github.com/Ternlux/ternlux/


r/ETL • • 9d ago

Incremental loads with updated_at > last_watermark can silently skip rows. A tiny simulation of why, and the overlap-plus-upsert fix

2 Upvotes

A common incremental extract: remember the max updated_at you loaded, and next run pull rows with updated_at > watermark. It works until a row becomes visible to readers after rows with later timestamps, for example when a long transaction commits late and keeps its earlier updated_at.

A minimal simulation (made-up data, integer times). Each row is (id, updated_at, visible_at):

a: updated_at=100, visible at 101
b: updated_at=105, visible at 130   <- slow commit
c: updated_at=110, visible at 111
d: updated_at=140, visible at 141
Pipeline runs at t=120 and t=150.

Naive watermark (no overlap):

  • Run at 120: sees a and c (b isn’t visible yet). Watermark becomes 110.
  • Run at 150: asks for updated_at > 110. b has updated_at = 105, so it’s never selected. Only d is loaded.
  • Result: loaded a, c, d. Missing: b, with no error anywhere.

Overlap window plus upsert by key (30 time units back):

  • Run at 120: loads a and c, watermark 110.
  • Run at 150: asks for updated_at > 110 - 30 = 80, so it re-reads a, b, c, d.
  • With an upsert by primary key, the target ends with a, b, c, d and no duplicates.

Overlap without a dedupe step: the same overlap with plain inserts loaded a and c twice. So the overlap needs an idempotent load (upsert / merge by key, or delete-and-reload by partition).

Ways to deal with it (and what each costs):

  • Overlap window + idempotent upsert. Simple and robust against late commits, but you re-process some rows each run, and the right window size depends on how late your data can arrive.
  • Use a monotonic change marker instead of a timestamp, such as a log sequence or change-data-capture stream, if your source offers one. This avoids the timestamp-visibility problem, but it depends on the source system and adds operational complexity.
  • Periodic full reconciliation, such as comparing counts or checksums per partition between source and target, to catch what incremental logic missed. It costs compute, but it checks the thing that matters.

Limits of this post: the simulation uses fictional rows and integer times to show the principle. Real sources differ in clock skew, isolation levels, time zones, and whether updated_at is set by the application or by the database, so check how yours behaves. Hard deletes are another gap: a watermark query never sees a row that was deleted.

How do you handle late-arriving rows in incremental loads: overlap windows, CDC, or reconciliation jobs? And how did you find out your first incremental load was missing data?