Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

Data Engineering Central Podcast

Data Engineering Central Podcast artwork

Data Engineering Central Podcast - 04

Nov 20, 202423 minAudio
ShareXLinkedInFacebookWhatsAppEmail

It’s time for another episode of the Data Engineering Central Podcast. In this episode we cover … * Apache Airflow vs Databricks Workflows * End-of-Year Engineering Planning for 2025 * 10 Billion Row Challenge with DuckDB vs Daft vs Polars * Raw Data Ingestion. As usual, the full episode is available to paid subscribers, and a shortened version to you free loaders out there, don’t worry, I still love you though. 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.

Music Music

SPEAKER_00This is the Data Engineering Central Podcast. I'm Daniel, your host. Welcome to episode number four. Today we're going to hit a few different topics. We're going to start with Apache Airflow versus Databricks workflows. We're going to talk about end of year planning for 2025. So what does engineering planning look like or what should it look like? We're going to talk about a 10 billion row challenge I did with DuckDB versus Polars versus Daft. We're also going to talk just a little bit about raw data ingestion.

SPEAKER_00Let's start it off with Apache Airflow versus Databricks Workflows. If you're anything like me, you've been kind of wondering for a while, what's up with Databricks Workflows? Why should I use it instead of Airflow? And kind of where does it fit in the orchestration landscape other than it's just another Databricks tool? I mean, I'm not really going to talk that much about Apache Airflow. If you're unfamiliar with it, you're not really a data engineer. It's been around a long time. It's the GOAT tool for data orchestration and dependency management. If you don't know about it, go look it up,

SPEAKER_00and I'm pretty sure everybody knows everything they need to know about Airflow. So let's talk more about Databricks workflows and how they compare to Airflow. Now, if you're wondering what a Databricks workflow is, the Databricks website calls it a tool that allows you to schedule and orchestrate data processing tasks on Databricks. So basically, you know, I mean, it kind of sounds like Airflow, right? On the surface, it's like, okay, I can run and schedule my task. Why wouldn't I just use it? That's a good question. So Databricks workflows are used to configure Databricks jobs.

SPEAKER_00And by jobs, plural, we mean if you have a whole pipeline of Databricks jobs that you're running, there may be some sort of dependency between each other, different things, then you can use Databricks workflows to do that. I remember a Databricks job is a unit of work that consists of multiple tasks. So you can kind of combine them all with a Databricks workflow. So again, workflows are a combination of jobs and jobs can be made up of one or more tasks. And basically workflows let you have task dependency that allow you to establish

SPEAKER_00control flow within a job. And of course, there's notifications that can, you know, set updates for starts, succeeds, fails, kind of all that kind of stuff like you would. assume and it also has support for retries things like that and has duration thresholds right just like you wouldn't any other tool it's just a familiar concept if you actually look at a visual representation of a databricks workflow it looks much like a dag that you would see in airflow it's a bunch of different boxes that

SPEAKER_00are connected to each other with lines saying this is how this job or workflow is going to run one thing you'll notice right away the difference i see the major difference i see between airflow and databricks workflows is that workflows is a poor man's airflow it's configured with json right that's not fun you don't realize no concept of a dag with python like you would have an airflow these are json file structures that can get pretty ugly and large if anyone's familiar with

SPEAKER_00aws data pipelines which was depreciated that's what that tool was it was basically a json orchestrator dependency management tool it looks very similar to how basically workflows is set up, which is kind of disappointing. And I don't think people are going to like that. People like Airflow because of the visualization, because of the way you can write DAGs with Python. Honestly, if you have like a multitask, multi-job workflow, that looks very nasty when you actually lay it out in JSON. It's kind of hard to read it all and look at it. It's hard to understand it.

SPEAKER_00because when you're looking at it you know you've actually got to say run if depends on trigger schedule etc and it's just multi-nested json and it just it doesn't look good and people really don't like that i mean technically you could use a databricks sdk with python to kind of create workflows and jobs like this but again i don't think a lot of people are doing this and it doesn't really look that great if you look at the code of doing it it's yeah it's meh at best Then the problem with Databricks workflows is it's specific to Databricks.

SPEAKER_00A lot of people use tools like Airflow because they can work across multiple different tools, right? You can do something in S3, you can call a snowflake job, a redshift job, you can call something in AWS, you can call something on Databricks. Airflow is just a lot more flexible. It's independent a lot of times from the compute and it's got a huge community behind it. Whereas, you know, if you're running strictly only Databricks jobs and that your entire pipeline consists of only that and nothing else,

SPEAKER_00sure, go ahead and use Databricks workflows. It's fine. But if you're going to want to do anything else besides run a Databricks job, then, you know, why would you add another orchestration tool on top of your system that doesn't really reach out to other parts that are outside Databricks? It's kind of a bad idea. Honestly, if you have large amounts of pipelines with complex tasks, I still think you should pick Airflow. It's going to feel more natural. People are familiar with the DAG concept from Airflow. They're familiar with kind of writing dependency graphs as DAGs.

SPEAKER_00I don't know if you have to set up these massive JSON schema structured multi-layered things. It's just not going to look and feel well. People... are onboarding. They're not going to really know what they're looking. You say, Hey, what does this pipeline look like? Go look at this giant JSON file. That kind of sucks. I'm not sure what the future of workflows is. Is Databricks planning on making it, you know, feature parity with Airflow? That seems like a big task. It doesn't make much sense. Maybe they will. I just think it's a way for them to, you know, just get people to use their platform more.

SPEAKER_00Say, Hey, look, you can orchestrate some of your jobs with workflows. You know, it's not perfect, but use it. My problem with that is that, you know, you really should only have one orchestrator tool. I don't think you should use Airflow and workflows. You're just adding complexity for no reason, really. You've got to say that Databricks, of course, they make a lot of good tooling. So when it comes to actually managing workflows, you know, you can use the Databricks CLI, the SDK, the UI, the API. REST API, that is, you know, there is a lot of range of options for there for people who are in to more programming,

SPEAKER_00CI, CD, want to automate stuff. It's probably a little bit better for that kind of thing than Airflow. But again, I think the user experience is going to be a little disjointed. Honestly, I think if Databricks wants to make inroads with people who are using Airflow today and get them to switch over to using Databricks, they're really going to have to change their approach and add a lot of features to workflows. They really need to work on their documentation. They really need to probably adopt some sort of DAG approach with Python. That's just what people like and are going to use.

SPEAKER_00People are not going to like just writing JSON files to read out their pipelines. It's probably just not going to happen. You'll let me know what you think in the comments if you've used workflows or not. But again, I just think they're probably more of an interesting play around tool for people who don't mind running two tools, two orchestration tools that is, and people who maybe are 100% Databricks and they really don't do anything outside of Databricks. I can see maybe the argument to use it. But other than that, it just seems like a nice shiny tool.

SPEAKER_00I want to talk about a little bit different of a topic end of year planning for 2025. I think most data engineering teams and engineering teams should be doing this right now. I would say we're probably lucky if 50% of people are doing planning for next year. And it's a super important topic. I just wanted to really talk about how I approach it and how I do it and, you know, take what you will from that. my big problem is that most data teams do not plan well they really don't know what's coming down the pike they may know what the next sprint holds the sprint

SPEAKER_00maybe two sprints if they're lucky but otherwise this is kind of wandering in the dark and the problem is when you don't have goals high level goals and high level planning about hey this is generally what i want to accomplish as a person as a team as a data platform next year You kind of end up wandering around and a lot of tech that piles up. You don't learn new skills. The data platform doesn't improve. You just kind of go from one fire to the next, and that's a really bad way to operate. Engineering planning at the end of the year for the next year will help you keep a

SPEAKER_00clear head about what you're in for next year. You're going to be able to hold yourself and your team accountable to things that you say, hey, we want to accomplish this. It's going to enable you to grow stronger technically as a team and individual by adopting new technologies, improving certain processes. It's going to enable you to actually implement new features and technologies that you want to that you wouldn't have time to otherwise or wouldn't even plan for. You can say, hey, we want to adopt Databricks, Snowflake, or something like that. It also helps you keep ahead of tech debt,

SPEAKER_00keeps it at bay, and honestly, it helps you deliver value to the business by working on what matters to them. Without planning, you're just lost without a map. You're wandering, you're doing a lot, but you'll never get anything done. The engineering plan at a high level will help solve those problems. If I could draw you a picture in your mind of kind of how I do engineering planning, I kind of, if you go to the top of a paper and draw three bubbles, what I would say, those three bubbles hold business priorities. the engineering wish list and then tech debt so again that's business priorities

SPEAKER_00engineering wish list and tech debt i think you need to start with those three topics in mind when you're planning for next year what you're going to work on basically what you need to do is you make a high level list of all those things once you discuss them with the other stakeholders so obviously for business parties you need to go discuss that with product with marketing Right. You need to discuss that with the business. You need to have a list of like, hey, generally, what do you guys think you want to accomplish next year? Are you guys shipping some new features? You're doing this and that. Just get a high level list.

SPEAKER_00Typically, there's a roadmap that exists for the business that drives the requirements for a product and marketing and different business units want to do. You just need to get a hold of that and understand what that looks like for next year. What's their top three priorities? Meaning, what are we probably going to have to work on next year? It's kind of good to know that, and along with the timeline of when they want those things. When it comes to the engineering wishlist, that's just obvious. I mean, if you're into engineering or you're close to engineering, you would just discuss that as a group. An engineering wishlist could be like, these are the new technologies that we would like to use.

SPEAKER_00There's this five or six different spots we want to work on, right? It's just an engineering wishlist of... this is the stuff we would like to do to help move the platform forward. It's pretty obvious. But if you don't talk about that stuff beforehand and plan for it, you don't really have a plan or know what they are or know what you work on. So then you will probably not do any of those things next year. And of course, the last bubble is technical debt. That's just obvious. That's a list of probably high level tech debt. You know, this is the type of stuff that we need to absolutely work and fix and work on if we

SPEAKER_00want the platform to move forward. Basically, once you have those three bubbles kind of like talked about, discussed, you've written down like maybe the top five or 10 things from each of those bubbles, business priorities, engineering wishlist, technical debt. You kind of have to obviously put those all together and you got to prioritize it with a business and say, when do we need to implement this new feature that you're talking about? Is that going to be Q1, Q2, Q3? When it comes to the engineering, which is like, oh, OK, we want to implement this new product. That means we have to buy in this quarter or,

SPEAKER_00you know, go talk to this person to get approval to do this. Right. You could sort of lay out generally speaking on a calendar. This is generally where we should do this and that. When it comes to technical debt, you might look at it and say, hey, we have to solve this problem or it's going to cause issues for this new project or this new feature, right? You can kind of pick the top five and say, hey, this is costing us a lot of money. We need to deal with this. You can lay it all out and you can start to make a priority of like, hey, I generally think in this first quarter, we're going to work on these three things. The second quarter, these three, et cetera.

SPEAKER_00It's really not rocket science, but the problem is most people don't do it. A couple notes, additional notes about planning the engineering for next year is when it comes to business priorities. This is probably the number one thing you have to deliver value. It's probably going to be what 80% of engineering works on. And don't forget to think about the timing and the desired outcomes of those products and features that the business wants next year. That's going to be kind of key to laying them out in the calendar to understanding when you'll have time to do what. and again don't forget about the engineering wish list that's not really technical debt that's not what i'm talking about this is like hey what upgrades tooling

SPEAKER_00changes infrastructure additions do we need to do or do we want to do to bring the platform forward at a high level we're not necessarily talking about things that are already there things that are tech debt they could be tech debt but these are like pie in the sky hey we want to move from airflow to this other tool or we want to move from snowflake to databricks these are high level big picture things This probably won't be a big list and probably comes after the priority of the business. And then never forget about technical debt. It's critical for the long-term success of any data platform to deal with technical

SPEAKER_00debt and some structure you need to probably prioritize your technical debt. You need to have a plan to tackle at least some of it. Otherwise, you'll never get to any of it and the data platform will slowly atrophy into failure. And don't forget, a lot of this planning is just about having conversations, right? It's forcing that conversation with product or marketing or whatever C-suite people to communicate their plans to you. Don't let it wait till it's dropping on your head. Oh, hey, we need this thing, right? Have the discussion before him. You're forcing them to make decisions and communicate that with you.

SPEAKER_00And don't forget, you know, having these engineering wishlists, it helps the whole team. It helps people feel involved. It helps people feel like, you know, we're moving forward. I'm going to learn new skills. The platform's moving forward. We're going to try these new things. It's very important to have a few wishlist items that you can kind of push the data platform forward to the future. And, of course, it can also hold everyone accountable if we put it all down on paper. And what it ends up is you end up having a Venn diagram of our three bubbles, right? You have the engineering needs and wishlist. You have the business needs and product needs.

SPEAKER_00You have the technical debt. It's kind of like a Venn diagram. They overlap and there's stuff in every box, but you're probably going to, you know, they're going to overlap and you're just going to pick the main stuff that needs to be done in the middle. And what happens is, you know, you talk about your plan, you share it, you verbalize it, talk with the different teams and And you, you know, you have probably a 70% idea of what's going to happen next year. Of course, there's going to be a lot of stuff that pops up that you don't know about, but you know, it's better to go into 2025 with 70% of a plan rather than zero.

SPEAKER_00I want to chat quickly about a fun little experiment. I did a 10 billion row challenge with DuckDB polars in Daft. What I really wanted to do was mostly make people mad, sort of that, but sort of I just wanted to, you know, try this out. I wanted to see, hey, these tools that everybody plays around with on their laptop. Oh, that's great. What does it actually look like to run a large data set in a production like environment with these three tools? A lot of people talk, talk, talk, but, you know, they don't really walk, walk, walk. They might play on their laptop.

SPEAKER_00Well, that's not the real world. Funnily enough, I did a survey at the beginning when I did this article on Substack and asked who's going to be the fastest ahead of time before I give you the results. Who's the fastest on 10 billion records, DuckDB, Polars, or Daft? And it was just in that order. People voted most for DuckDB, second for Polars, and Daft was last. Guess what? They had it backwards. Daft was first, Polars second, DuckDB third. Hilarious. What I did is I set up an EC2 instance with about eight gigs of RAM and two CPUs, a Linux box. And, you know, this is just commodity hardware, right?

SPEAKER_00And then I had written recently a DataHobbit tool called DataHobbit. It's a Rust-based tool to generate a data set, a CSV data set. And I used it to pump out a 10 billion record data set in CSV format. And I pushed that up to S3. I lied. It was actually Parquet format. And what happened is it had about 173 parquet files, about 16 and almost 17 gigabytes sitting in S3. Remember, the machine only has 8 gigabytes, this EC2 instance, and I just wanted to run a simple group by statement.

SPEAKER_00And I was kind of looking at, hey, what is it like to write this code? What does the code look like in DuckDB, Polars, and Daft? And, you know, how does it do? How does it deal with... credentials does it finish at a reasonable amount of time you know this is a real-life workload right read these parkette files from s3 do some aggregation and write the results back to s3 as a csv file long story short is that i had all sorts of memory issues with duck db and it was running forever it would run for 20 minutes and fail on memory i don't know what else to say besides that

SPEAKER_00I think I'm going to try it again and just see if I can't make it work. I really want it to work, and I've tried pretty hard to make it work. I'm not a DuckTB expert, but you know, I give everything a fair chance. Honestly, what it just came down to, I kept getting out of memory issues even when trying to spill the disk. It just wouldn't do it. I don't know what to say besides that. A lot of other people have that problem online. You can go Google it. It's not just me. I mean, it could just be me, but other people have that problem too. And after a certain point, you know, I'm just not going to try anymore. That's what it comes down to.

SPEAKER_00I mean, again, I'm probably at some point in the future, I'm going to try it again, see if I can make it work. But just kind of annoying that it doesn't work out of the box. Whereas the other tools like DAF and pullers, those actually were able to process this without any problem. I didn't have to throw any extra settings at them, anything like that. It's just like, hey, for example, the DAF code is just really simple. And it ran in about you know two minutes and 25 seconds pullers are in about two minutes and 30 seconds so pullers are slightly slower daft was faster daft code was a little bit better

SPEAKER_00just because it you know could read default aws credentials when it saw the s3 buckets that i was reading and writing to and it just picked that stuff automatically it was smooth daft had a little bit more trouble with that it picked up the credentials when i was writing or reading the data but on writing it i kind of had another package to get it to work it was okay it's fast a little bit more code but both of them were able to get it done about two and a half minutes i just found it interesting because you know a lot of people play around on their laptops things like that but it's like that's

SPEAKER_00not the real world you know in the real world if you want me to use this production there's going to be data sitting in s3 probably somewhere it's probably going to be running not on someone's laptop it's going to be running on some ec2 box or some other compute in the cloud with the files in the cloud there's going to be credentials i just wanted to see hey can these tools deal with that kind of stuff without a bunch of breaking and stuff the answer for daft was yes undeniably the best is the fastest and the code was the slickest it totally understood the cloud you know it could see my aws

SPEAKER_00credentials stored on the box without anything any problems Polar's was just about the same. I had a little bit more problem writing back to S3. I had to kind of add another package in there to get it to pick up the credentials and write out there, which wasn't a huge deal. When it came to DuckDB, I just couldn't make it work. I just, you know, for whatever reason, even trying to spill on the desk, maybe I was doing it wrong, whatever. But again, for the average engineer, I tried a little bit. I tried to run it a couple of different times, Googling stuff. Hey, how come this is blowing up out of memory?

SPEAKER_00And at the end, I'm just like, well, I'm not going to fight it anymore. And that's what someone would do in real life, right? They would just eventually stop and say, hey, this other tool runs fast. It does it without any problems. So I guess I'm just going to use that tool. I'm not going to use TuckDB, which is too bad. Last but not least, I just want to talk quickly about raw data staging, staging data in raw formats and data warehouses and lake houses. This is interesting because I posted a question on LinkedIn. I just asked people, I said, hey, when you load data into your raw staging tables in your lake house or data warehouse,

SPEAKER_00Do you transform anything? Do you do data types? Anything you just raw and touch? And it was pretty funny. I got about over 30 comments of people saying, hey, this, that, and the other thing. It was interesting. Some people were kind of, you know, you have plenty of people that are like, hey, you should not touch it at all. It should be raw, raw, raw, baby, string, string, string. Don't touch it and not don't do anything. And you kind of had people in the middle who were like, yeah, I don't really try not to do too much. I might, you know, add some date time stuff, kind of cast those columns from dates just because I use it for partitioning and

SPEAKER_00things like that. And then you had other people like, eh, well, we just transform it right away. We apply schemas and enforce formats, all that kind of stuff. So it's kind of around the board, surprisingly. I thought this was funny, mostly because, you know, loading data to raw, you know, raw staging tables, raw tables, this has been around for decades. I mean, we've been running data warehouses for 20 years, 30 years, and people still can't, you know, come to consensus on, you know, what should we do with our raw tables, raw data.

SPEAKER_00i kind of fall in the camp of the middle you know i prefer to not touch anything just simply adding metadata information onto that raw data you know like what file this came from when it came in what time stamp things like that maybe the job id i'm also in the group of like hey if there is a column that is a time stamp or date and i need it for partitioning or clustering reasons i might do that but otherwise don't touch it at all i kind of so i kind of fall in the middle maybe you'd call that i don't really see the point of just shoving it all as it's raw form without

SPEAKER_00anything at all because then it really is just a simple copy of the data and how do you partition it how do you keep track of it as a data size grows you know this seems kind of hard now it got me thinking a lot about the medallion architecture brought to us by databricks it's gotten pretty popular over the years it really doesn't differ that much from the kimball style data warehouses you know bronze silver gold and when i found it kind of interesting i went on databricks website for medallion architecture they called kind of the bronze layer hey it's a landing zone for raw data no schema needed and i'm not sure what i thought about that simply because you

SPEAKER_00know they're talking about delta lake delta lake has schemas i don't know why they would say no schema needed that's just a joke you know delta lake has a schema do you mean just call them everything strings i'm not really sure what that means And I guess, you know, it's really just goes to show that there isn't really one way to answer the question. People do it however they want to do it. Probably the best practice is to add metadata, maybe transform one or two columns if you need them for clustering a partition. Otherwise, leave the raw data on that touch. You probably shouldn't be doing anything else to it.

SPEAKER_00Anyways, that's all I got for this episode. Thanks for supporting the channel, and I'll talk to you later.

Open the transcript file

Hosts and Guests

Nobody is credited on this episode yet.

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. AI Is Changing Software Engineering Forever | Gregor Ojstersek

    Nov 11, 202654 minAudio

    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),...

    Credit the people on this episode

  2. Life After Big Tech

    Nov 4, 202650 minAudio

    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...

    Credit the people on this episode

  3. AI Is a Mirror: MLOps, LLMOps & the Future of AI Engineering | Maria Vechtomova

    Sep 30, 202650 minAudio

    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...

    Credit the people on this episode

  4. The Future of Data Engineering in the Age of AI | Erfan Hesami

    Sep 16, 202647 minAudio

    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...

    Credit the people on this episode

  5. Big Tech Laid Him Off. He Realized He Didn’t Need a Job. — Asian Dad Energy

    Sep 9, 202649 minAudio

    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...

    Credit the people on this episode