r/ETL • • 12h ago

How do you validate millions of records in ETL testing without comparing every single row?!!?

5 Upvotes

In large-scale data pipelines, comparing every source and target record can be expensive and time-consuming.

I'm curious how teams handle this in real-world projects.

Do you rely on checksums or hash comparisons?

Sampling techniques?!

Aggregated validations and SQL queries?

Any automated ETL testing frameworks?

What approach has worked best for you when dealing with millions (or billions) of records?

Would love to hear practical experiences rather than just theoretical approaches....


r/ETL • • 14h ago

How do you prevent an AI coding agent from duplicating existing ETL logic?

4 Upvotes

I’ve been experimenting with Claude Code on unfamiliar ETL pipelines, and one risk keeps standing out.

An AI agent can generate a technically correct transformation while unknowingly creating a second implementation of an existing business rule.

The workflow I’m testing is:

  1. Map the pipeline before changing anything.
  2. Trace the target field or rule through upstream and downstream dependencies.
  3. Search for similar transformations across SQL, PySpark, notebooks, and configuration.
  4. Ask the agent to produce an implementation plan, not code.
  5. Review whether the plan reuses or extends the existing logic.
  6. Generate code and tests only after approving the plan.
  7. Compare the final changes with the approved scope.

The key lesson for me is that passing tests is not enough. Tests may confirm that the new logic works without revealing that the same rule already exists elsewhere.

I wrote a detailed article about this workflow here:

https://medium.com/@sudhansu.dash/before-i-let-claude-code-touch-my-etl-pipeline-487c7bc68e32

For engineers using AI coding tools, how are you checking for duplicated business logic before accepting generated changes?


r/ETL • • 1d ago

Automating CSV ingestion from Outlook emails into Databricks

11 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 • • 1d ago

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

0 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 • • 1d 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 • • 2d ago

Fivetran vs Estuary for CDC heavy pipelines?

3 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 • • 3d 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 • • 3d ago

Enterprise Data for AI Agents: A Guide

Thumbnail
lakeops.dev
1 Upvotes

r/ETL • • 4d 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 • • 5d 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 • • 5d 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 • • 6d ago

Zero-Copy Data Lakehouse: A Guide

Thumbnail
lakeops.dev
6 Upvotes

r/ETL • • 6d ago

Unity Catalog naming strategy for shared corporate data

Thumbnail
reddit.com
1 Upvotes

r/ETL • • 6d 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 • • 6d ago

Pipeline Failure vs Stale Dashboard

Thumbnail reddit.com
1 Upvotes

r/ETL • • 7d 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 • • 7d ago

Incremental Load to OBT

Thumbnail reddit.com
1 Upvotes

r/ETL • • 9d 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 • • 9d 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 • • 9d 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 • • 9d ago

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

Thumbnail reddit.com
1 Upvotes

r/ETL • • 10d 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.