It’s time for another episode of the Data Engineering Central Podcast. In this episode, we cover … * AWS Lambda + DuckDB and Delta Lake (Polars, Daft, etc). * IAC - Long Live Terraform. * Databricks Data Quality with DQX. * Unity Catalog releases for DuckDB and Polars * Bespoke vs Managed Data Platforms * Delta Lake vs. Iceberg and UinFORM for a single table. Thanks for b… This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit dataengineeringcentral.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Welcome to episode number six of the Data Engineering Central podcast. I'm Daniel Beach, your host. Thanks for tuning in today. We're going to talk about a bunch of topics today, just not in depth, but shallow. And the topics we're going to hit today are AWS Lambda plus DuckDB, Polars, Daft, etc. with Delta Lake, a lightweight lake house approach. We're going to talk about infrastructure as code, long-lived Terraform, death to Terraform. We'll talk a little bit about Databricks' new data quality tool,
SPEAKER_00DQX, and first PySpark DataFrames. We'll just touch briefly on Unity Catalog support releases from DuckDB and Polars. We'll quickly cover a topic I wrote about recently, bespoke versus managed data pipelines, build it yourself or buy. We'll also talk about Delta Lake versus Iceberg and the uniform single table structure that Databricks has been working on. The first topic we're going to hit on today is lightweight lake house architecture.
SPEAKER_00I recently did a talk with the Delta Lake community. I'll leave a link in the notes below to this podcast, to the YouTube video. Did a live talk there about an hour long to get more into this topic if you're interested in hearing more. Basically what I talked about this whole time was the new idea of instead of having these heavy-handed tools like Spark to do your lake house processing, there's a whole new set of tools that are being released quietly on the side that have a good integration with lake house formats like Delta Lake.
and you are able to wrap these tools inside serverless architecture like AWS Lambdas.
SPEAKER_00And what you end up with is a very cost-effective, light, and efficient lake house design that works just as good. It's a little bit outside of the box of what people normally think about when you think about lake houses. When you say Lakehouse, everybody thinks BigQuery, Redshift, Snowflake, Databricks, etc. When in reality is things are changing. People have different tools. There's new tools being released every day. that have awesome integrations. We're talking about DuckDB, Polars, Daft, Rust, things like that.
These tools are perfect and easily capable of working with large amounts of data sets.
SPEAKER_00And you can wrap these tools up because they're very lightweight. For example, with DuckDB or Polars, you can pip install them. You can wrap these sort of tools inside AWS Lambda. You can trigger them on S3 files. And all of a sudden, instead of running these massive, expensive Spark jobs somewhere in the cloud, where you're ingesting a bunch of files from S3, well, you can just do that. You can just, you know, maybe take an S3 bucket and put a trigger on it every time a file hits it and creates and go ahead and use DuckDB or Polars or Daft or one of these other tools inside of Lambda is to simply take that data from,
SPEAKER_00say, maybe a CSV file or some other flat file and put it into your lake house. Just a different approach that's starting to get more popular. People are becoming kind of more familiar with it and getting outside the box of simply thinking, oh, I have to use Spark on... this big platform on databricks whatever to do all this sort of lake house work when that's that's simply not true anymore we're progressing so quickly with these tools and they're so fast and so efficient that's kind of changing the game when it comes to the lake house there's a lot of good reasons to get into this sort of
architecture i talked a lot more about it in the youtube video go ahead and check that out what you think about reduced infrastructure costs with just running a lambda lightweight lambda you can really bring down some serious cost when you're
SPEAKER_00considering comparing a lambda quick run in here and there to actually running and spinning up a spark cluster there's a big cost difference there that'll hit the bottom line as well as another topic is the reduced infrastructure management complexity when we're talking about these big overarching lake house platforms they're also awesome but they're also complex and there's a lot of infrastructure to manage You know, I talk a lot about how AWS Lambda is like the perfect lightweight infrastructure. It's super easy to set up. Anybody can build a Lambda or deploy a Lambda,
both just a couple lines of code.
SPEAKER_00The infrastructure is just super light. When it comes to complexity, honestly, there's nothing easier than an AWS Lambda. As long as you're aware of a few of the gotchas, like... 15-minute runtimes, 10 gigabyte max memory size, etc. As long as you have an understanding of those sort of things, you kind of work your way around them. Lambdas there is nothing easier. It's all single contained right there. Just no complexity there, at least less complexity, and that's a good thing for a data platform. In this talk, I actually went and built a bunch of real life examples of using DuckDB,
SPEAKER_00Polars, Daft, and showed examples of running, you know, lake house workloads and pipelines with these tools, with Delta Lake, with DuckDB, with Polars, with Daft, all wrapped inside the Lambda. Like I said, I left a link to that talk. I'll leave a link to the GitHub, too. Actually, it has the code. I highly recommend you go watch the talk, read through the code, and just see how simple and lightweight the new Lake House architecture approach is. I think it's super exciting. There is more. things ahead in the future when it comes to innovations with
more people starting to adopt these new tools like duck db and polars starting to use them in their lake house architecture i'm super excited for what the future holds the next topic is a little tongue-in-cheek it's really terraform sucks along with terraform the topic of infrastructure as code i've written a few times about this recently and i'm kind
SPEAKER_00of doing it tongue in cheek Basically, what it comes down to is we all know that in large data platforms that are reliable, we have to have some sort of way we can manage large data platforms, all the pieces, the complexity. We can't just have people going around in UIs and clicking create. The problem is what happens when somebody deletes an S3 bucket or they delete some piece of tool or some piece of code somewhere here and there. Honestly, in today's modern lake house, architecture and data platforms are complex. They're made up of a lot of different tools.
Many of these tools are in the cloud on AWS, GCP, and Azure, things like that.
SPEAKER_00Honestly, every data engineer and every data engineering team needs to be moving towards more of an infrastructure as code kind of mindset. Now, I think we can argue about what the right ways to do it. What tools do you use? How far do you go? And I think a lot of people get sucked up into that conversation and they drink the whole Kool-Aid, the whole glass, instead of maybe thinking, hey, do I really need to drink the whole glass or half the glass? When we talk infrastructure, everybody thinks Terraform. And We've got a lot of people on both sides of the fence. It could be CloudFormation, Terraform.
SPEAKER_00Honestly, those aren't the only options. And I like to point that out to people when it comes to infrastructure as code. You know, they might say, I've heard a lot of bad things about Terraform. It gets a little messy, tons of YAML files everywhere. It gets really complex. It's like, yes, you have to learn tools. Yes, it can get complex. There are downsides to it, but I also remind people that when it comes to infrastructure as code, there's lots of other options. Most every major company like AWS or Databricks or Snowflake, they provide SDKs and CDKs, and you can easily use their APIs,
SPEAKER_00their SDKs that they provide, their CLIs. all these tools all these tools that they provide usually have interfaces to create and manage different pieces and components of those infrastructures so whether it's maybe say a cluster on Databricks there's many ways to define a cluster on Databricks it doesn't just have to be in Terraform it can be done through the SDK and you can even make python calls right with the python sdk to create some of these pieces of infrastructure and there's many different ways to solve this
problem i think the main thing is yes infrastructure of code can get a little out of hand nobody wants to be a yaml engineer but at the same time we understand that there's super super big benefits to adopting some of these tools having a lot of your infrastructure in
SPEAKER_00code just enables you to work on other things it enables you to have recoverability, just to be able to make simple changes in code. You kind of know what's going on with all the pieces of your infrastructure, not wondering, you know, who's out there clicking in a UI, doing this or that. So definitely, I think this is a topic we're going to hear about more in the future and have heard about more lately, even though it's always been popular. But I've definitely seen an uptick in the sort of infrastructure as code discussions that But again, I just want to remind people that infrastructure as code doesn't always mean Terraform.
There's other options out there for pretty much any tool, and you should explore those options.
SPEAKER_00And again, you don't have to drink the whole cup of Kool-Aid. It doesn't mean all you're going to be doing all day as a data engineer or software engineer is just playing with the YAML files. No one wants to do that. There's different pieces to architecture, different pieces to data pipelines, to tooling that you're building. You don't have to put every single thing in the infrastructure as code, just the main components of your architecture. If you think about what are the building blocks that hold my data platform up? Is it S3 buckets?
SPEAKER_00Is it components inside Databricks or Snowflake? Is it different pieces of tooling inside AWS, like maybe an RDS instance, EC2 instances, VPCs, things like that, that maybe necessarily don't change all the time. They're more just the underlying infrastructure that we use every day to run our platforms. Then yeah, those things are super important and critical to your data platform. Yeah, you should probably put those in infrastructure code. Does it have to be Terraform? No, it could be CloudFormation. It could be maybe a CLI command that's automated through GitHub Actions,
things like that.
SPEAKER_00There's lots of options out there. Excited to talk about this topic more in the future. The next topic I wanted to cover quickly is the new data quality tool called DQX from Databricks Labs. It is an awesome PySpark data frame-based data quality tool. There's been a couple options in the market. Soda's been around a while, great expectations. Those tools have been around in data quality for a while, but honestly, a lot of people hate them because they are burdensome tools in the past. Especially Great Expectations has taken great strides to
simplify the usage and
SPEAKER_00integration of those tools, but they have and still continue to be very heavy tools. A lot of configuration required, a lot of project setup that is just simply almost overwhelming compared to even the data pipelines that you write in production that can end up being bigger and more complex. and then databricks came out with dqx it is an awesome pi spark data frame based quality tool that can do super awesome stuff it's pip installable it has all sorts of awesome things out of the box that comes you can profile
your data you can have it generate quality rule candidates and stats based on your data just out of the
SPEAKER_00box Of course, it has ability to define more checks with say a YAML file with Python or in SQL. Yes, I said SQL. You can define data quality checks in SQL. It's awesome. You can set critical levels like error or warn. It can actually quarantine bad data. So say you pass in a data frame to the data DQX data quality check, and it'll actually split the data frame into two good records, bad records, et cetera. It provides a dashboard and it works with batch or streaming. But honestly, I think the best part about DQX is that it's simply a simple tool.
There just isn't a lot of overhead to it compared to everything else on the market.
SPEAKER_00It's just a couple Python imports, a couple lines of code, and you can easily define your own Python checks or just make your own SQL checks, you know, say this column is greater than X or Y or this column in these values. It's just, I cannot express how easy it is to use. And I think it's a no brainer for anybody on the Databricks platform. You have to check out DQX, go to Databricks labs, GitHub, or I'll leave a link to the article. I wrote more in depth about this topic on my sub stack.
SPEAKER_00Go check it out. It is a sweet tool. I want to talk really quickly about some new integrations that Polars and DuckDB both have released recently. I'll leave a note to a more in-depth article I wrote on the topic. But basically, both Polars and DuckDB, which have basically become the two behemoths battling for supremacy in the data world lately. I mean, you can't go anywhere without hearing about these two tools. They both have released Unity Catalog support for Delta Lake, and it is pretty interesting.
SPEAKER_00Now, this is interesting because, of course, we have the Iceberg versus Delta Lake format war going on. It's been going on for a long time and will continue to go on. for a long time. It's just another reason to look into Delta Lake, my favorite tool for the lake house, because Databricks and DuckDB both have released Unity Catalog support, which let's be honest, most people that are using Delta Lake, for example, they're on a Databricks platform and most likely their Delta Lakes are hidden behind unity catalog of course you can just read those catalogs
by just going to you know like an s3 location of that delta table but adding in this extra layer and support that both duckdb and pullers have added for unity catalog just makes it makes it super super simple to start using these high performance tools on your
SPEAKER_00lake house and i think Again, we've talked about Lakehouse earlier in this podcast. Just as these tools are becoming more robust, they're very fast. They can handle lots of data. So it's just, again, shows you another reason why you should think twice when reaching for just Spark to work on all your Lakehouse architecture, whether it's Iceberg or Delta Lake or anything else. This just shows you that the data community and the data world at large is just kind of going towards a new way.
It's kind of going down a new trail where we have all these tools that can easily
SPEAKER_00integrate into our Lakehouse platforms. We can run, we can be more flexible. And I think that's the big takeaway here. And that's the big key is that when tools like DuckDB and Polar's release support for Unity Catalog integrations with Delta Lake Tables, it just means that We're getting a lot more flexibility in our lake house architecture, the way we build things day to day as data engineers pipelines. we can now have more options. We don't always have to reach for just a single option. Now we have many tools in our tool belt that we can reach for to get us the best result for our specific use case.
SPEAKER_00And that's a win for us all. The next topic I want to touch on quickly is bespoke versus managed data platforms. Should you build or should you buy? Now the reason I'm talking about this topic I've written about it recently is I had a call not too long ago just with a little startup and they were basically in this spot where they wanted some feedback they're saying hey our company is x size our data team consists of roughly y people our tech stack consists of a b and c tools we're having problems with scalability reliable and dfg break frequently we're not happy
with our setup we want to do something better what should we do and after talking with these guys for a while it just made me realize that you know what's really going on here is
SPEAKER_00we have this classic decision of bespoke versus managed data platforms. Basically, do I build my tooling from scratch? Do I manage my own tooling, everything from the ground up so I have control, my new control over everything? Or do I go ahead and go the SaaS route? Do I kind of buy things that are pre-built that are already managed for me in the cloud somewhere? There's a lot of There's a lot of thought that goes into it. There's a lot of trade-offs and important trade-offs that happen down the line once you make these decisions that are not easy to back out of.
SPEAKER_00This is honestly in a tale as old as time. The smaller company decides to come in. You've got a developer who just wants to learn Kubernetes or something, so says, hey, look, I need a data orchestration tool. So I'm going to pick X, Y, Z, and I'm going to host it myself on Kubernetes. I'm going to manage that all myself. And then, you know, as long as everything is on Kubernetes, I'm going to build this other custom pod operators. I'm going to build all this stuff. And honestly, this is what was happening to the small company. They just had a super tiny data team. They really only had one full-time guy working on data pipelines.
SPEAKER_00And all he was doing was managing custom, basically helm charts for Kubernetes for all these tools. And it just made me realize that, you know, there is consequences for making these decisions. As engineers, we need to look at ourselves and say, well, why are we picking a certain tool? Do I really want to rebuild this wheel again when I can just go to 15 different companies who have data orchestration tools managed in the cloud that are super cheap? Where is my time best spent? Is my time best spent fixing and managing basically my own data
orchestration tool?
SPEAKER_00Or should I pay someone a couple hundred bucks to have that tool in the cloud for me so I can actually go focus on maybe building data pipelines or other things that provide actual business value. I think when it comes to the bespoke versus buy it, it really comes down to how you're going to use them and what size your company are. And there's just not a right answer for everyone. We need to reduce complexity to engineers both logical and technological complexity. We need to match and size our tools to the requirements. We need to understand our data team size and skills as well.
SPEAKER_00And we need to match our tooling decisions to this. Should we really build this thing for ourselves or has someone else built this already and my time is best spent elsewhere solving these other problems? instead of building the core data infrastructure because you know in the long run we have to provide some business value we have to be able to be relied upon so if we're building things that are breaking and we're spending all our time doing that stuff we can't support the business or the business use case that's going to make us look bad in the end an engineer should think what is the
most important work i should choose to be doing and what tools will allow that to happen efficiently and
SPEAKER_00cost effectively if i build everything Myself, will that be interesting and fun? Sure, I will learn a lot about XYZ, but is that the best long-term decision? We need to think about what should you be spending your time on? How large is your team? What are they capable of? What is the timeline or deadline of your things or features that you're supposed to work on in the next year? What other high priority things are coming down the pipeline, et cetera, et cetera. When you look at your data platform, say in the context of all those things,
should I really be building this thing for myself or should I be buying it for
SPEAKER_00someone else? You should just be realistic when you're making these decisions about tools, understand the full consequences of the decisions you make, understand your own ability and your team size and priorities. Do your best to find the simplest solutions to the problem. Do you build or do you buy? I don't know. That depends on your team and what's coming up in the next year. The last topic I want to hit on today is basically Delta Lake versus Iceberg, this classic lake house storage format war that's been going on continually and will continue to go on. I basically looked into something called Uniform from Databricks.
This is basically a storage layer for Delta Lake that has basically metadata for Apache Iceberg. inside these delta lake uniform tables what does that mean it's basically that we can take a spark data frame or any other tool for that matter and we can create a delta lake table that has this options turned on where it creates a uniform table meaning it has it is a delta lake table but has metadata for
iceberg for example so basically what happens is you could take spark and you could read that table and
SPEAKER_00you could say scan Iceberg or scan Delta Lake or whatever. Polars, right? If you're talking Polars or DuckDB or Spark or whatever, you can basically point it at that Delta Lake table and it doesn't matter that it's Delta Lake. It actually, if you say, read it as Iceberg table, it reads it. And I think this is just super interesting. It shows how far these companies are going to overcome and win this storage format where they really want to be the tool of choice. They want to be on the right side of history.
SPEAKER_00They want to pick and say, hey, we picked the right storage format. It hasn't gone out of basically popularity, for a better way of saying it. I thought Uniform was very interesting. You can basically read and write to those tables. And it doesn't matter that they're Delta-like. I tried this. I'll leave a link to the substack I wrote about it. Using Spark, I kind of made a uniform Delta-like table and even took pullers and read that uniform table as an iceberg table and it worked great. I actually used Spark and wrote,
SPEAKER_00you know, iceberg format back to that Delta uniform table and it worked. So it's just really interesting because you can use different tools now. Now it's like I see what they're trying to do. they're basically trying to say hey with things like uniform and these other tools we're making it doesn't really matter what your delta lake what your lake house storage format is we can make it be either if you want to work with iceberg work with iceberg if you want to work with delta lake with the delta lake and we'll call it uniform it's just super interesting to see kind of how these companies are dealing with these different storage formats kind of seeing how
they're making it
SPEAKER_00easier and trying to break down barriers i'm Still curious if who's going to win the storage format war, but it is an ingenious move by Delta Lake. Go check out Uniform if you haven't. That's all I have today for the podcast, folks. Thanks for listening and thanks for your support. I've got some future podcasts planned and in recording that are super exciting talking about AI and the intersection of data engineering. So tune back in soon. See you later.
What happens to software engineers when AI can write most of the code? In this episode of the Data Engineering Central Podcast, I sit down with Gregor Ojstersek, former CTO, author of The Multiplier Mindset (O’Reilly),...
What happens when you finally achieve financial independence, walk away from a successful career in Big Tech, and have the freedom to do whatever you want? Is it everything you imagined it would be? In this episode of...
What does it actually take to build AI systems that work in production? In this episode of Data Engineering Central, I sit down with Maria Vechtomova, AI Engineering Lead, co-founder of CAUCHY, Databricks MVP, and...
I sat down with Erfan Hesami, founder of Pipeline to Insights, to talk about where data engineering is headed as AI and agents become part of everyday engineering work. We dig into the changing role of the data...
What happens when you spend decades building a successful career in tech, finally reach Big Tech, and then suddenly get laid off? In this episode of the Data Engineering Central Podcast, I sit down with AsianDadEnergy...