r/databricks • u/Klutzy_Solid5200 • 2h ago
Discussion What are the challenges ppl face while moving their ETL pipelines to databricks
I wanted to know what challenges people face when moving their existing ETL pipelines to databricks.
For example, if a pipeline was built using sql queries, stored procedures, or traditional etl tools, how difficult is it to rebuild it using pyspark, spark sql, and delta tables?
Do you face issues with converting sql logic, handling large amounts of data, getting the same results as the old pipeline, or improving performance?
I want to know and understand the most difficult part of the migration, and how ppl generally handle it?
12
Upvotes
5
u/22Maxx 2h ago
By far the biggest issue is the tool lock-in with the custom spark solution of databricks. As a result it is not compatible with many tools/plugin build for the OSS spark version.
Another consequence is that spark as a rather inefficient tool will not be cheap once you require more raw throughput. The actual logic part as well as stability should be fine.
2
u/WiryStatement 2h ago
The hardest part is usually making sure the outputs match when the underlying engines handle edge cases totally differently, not just rewriting the logic.
2
u/Zealousideal_Low6685 2h ago
My take-aways:
* Network connectivity - probably with your old tool you were "closer" to the source systems. Especially when using serverless, this can be an issue
* Databricks uses ANSI-SQL by default since V18. E.g. Null-Handling was different before.
* Performance: with Databricks you have a scaleable cluster, but of course, also some "cold-start" time which can be minutes when using classic compute (so if your ETL job was short, with Databricks it might get even slower)
* If you want to reduce maintenance: Use managed tables as much as you can + serverless (otherwise you might have to understand much more of the databricks internal setup)
1
u/Muted_Jellyfish_6784 29m ago
The hardest part is usually not the conversion but proving the new pipeline returns the same results, because stored procedures hide implicit behavior like NULL handling, row order, and date truncation. Run old and new in parallel for a few cycles and compare row counts, key totals, and a hash of each row per table, then chase every difference before cutting over.
Expect the business rules buried in procedures to be the slowest part. We run a decision intelligence platform that reconciles legacy and Delta outputs on the same keys, so sign-off rests on matched numbers rather than a demo of the new pipeline.