r/apachespark • u/CompetitiveBet8978 • Sep 21 '26
Getting started with Apache Spark Declarative Pipelines (SDP) tutorial for Open Source and Lakeflow
A while ago I put this Apache Spark declarative pipelines tutorial together after presenting at major European and APAC conferences. Those conferences are quite technical: you have to submit a proposal to the CFP, and they have a rejection rate of ~90%. I presented at Devoxx and DataEngBytes.
At those conferences I did some live coding with Spark Declarative Pipelines, mostly on OSS with VS Code and PySpark, but I also showed SDP with the Lakeflow Free Edition (exactly the same use case - I thought it might be nice to compare)
Since I got a lot of requests, I decided to share the content along with the Git repos here. I'd suggest to. check it out if you ....
- enjoy working with code (SQL and Python)
- are looking for a compelling Getting Started with Apache SDP example with just a few lines of code
- want a streaming example with real-time IoT data from events happening right now
- enjoy using a custom PySpark data source "opensky" – maybe even in your next Spark streaming demo :)
- don't want to spend money: use OSS or the Databricks Free Edition
Here it is:
How to get started with Spark Declarative Pipelines (SDP) tutorial (Open Source or Lakeflow)
2
u/ManonMacru Sep 21 '26
Can you ditch DBT if you have SDP? Imo that's the power of DBT: declarative pipelines, and dependency-aware re-processing after modifications
2
u/saad-the-engineer Sep 25 '26
This was pretty cool. "... Now it can be done in a coffee break, with a few lines of code and 100% open source ..." this is so true! I tried it out with my agent and was really fun to do! There are some flight paths near my house and nerded out on this demo. thank you for sharing.
SDP is awesome and i love how you used all the concepts in here! I had never used a custom open source data source on a streaming table before, very nice!
2
u/Much-Neat-6273 Sep 28 '26
Very nice! This is really cool, I love vizualizing flight paths. Could you share more on how the OpenSky source works and how it converts an API call into a stream?