Skip to main content

How Nubank Automates Data Quality Scores with Soda on Databricks

Summary

  • Standard checks: Baseline data quality validation automates across critical datasets at scale.
  • Data Quality Score: Single metric turns checks into a business measurement non-engineers understand.
  • Nubank scale: 11 million monthly checks across 30,000 tables achieve a 95% pass rate using SodaCL.

How Nubank Automates Data Quality Scores with Soda on Databricks

Watch: How Nubank Automates Data Quality Scores with Soda on Databricks
Talk by Walace Morais, Staff Software Engineer, Nubank
To make data quality measurable instead of anecdotal, run a standard set of checks on every critical dataset and roll the results into one score that non-engineers can read and act on. Nubank automates data quality with Soda on Databricks, running SodaCL checks on Spark and publishing a single Data Quality Score across 11 million checks and 30,000 tables, so data ownership scales across more than 100 data-owning teams.
Walace Morais, Staff Software Engineer at Nubank, explains the problem: quality is everyone's job and no one's metric, and teams rebuild the same checks differently. Nubank's answer is a reusable baseline of checks for critical datasets, covering anomaly detection, row counts, missing values, primary key completeness and uniqueness, and non-nullable columns. Checks are written in SodaCL, triggered by metadata, and run on Databricks with Spark and the Soda library, with results in Soda Cloud. At Nubank's scale this means 11 million checks a month across 30,000 tables, an overall pass rate of 95%, and 76% of monitored tables covered by standard checks. Next, Nubank will add producer-created custom checks to the score and move from classic to serverless compute.
Sponsored by Soda.

Chapters

FAQs

What problem does Nubank solve with standard data quality checks?

Quality is everyone's job and no one's metric, and teams rebuild the same checks differently. This video shows that Nubank standardized with a reusable baseline of checks for critical datasets, covering anomaly detection, row counts, missing values, and primary key completeness.

How does a Data Quality Score communicate data health?

This video explains that rather than scattered individual checks, a single Data Quality Score turns checks into a business metric that non-engineers can understand and act on. Nubank achieved a 95% overall pass rate across 30,000 tables.

How do SodaCL checks run on Databricks with Spark?

This video demonstrates that SodaCL checks are triggered by metadata and run on Databricks with Spark and the Soda library. Results are published to Soda Cloud, creating a unified view across the organization's data.

What are next steps in Nubank's data quality journey?

This video shows Nubank is adding producer-created custom checks to the overall score and planning to move from classic to serverless compute, letting data ownership scale across more than 100 data-owning teams.

Full transcript

00:00 Introduction

So let's get started. Today we will talk about how Nubank automates data quality score with Soda. I'm Wallace. I'm from Brazil. I'm a staff software engineer at Nubank. I have been working with your data platform, mainly with data governance capabilities, capabilities such as data quality. So now we'll talk about standard checks or purple standard and how we scale quality for business. So trust gets harder at data scales.

00:41 Why data trust gets harder at scale

So we have a lot of data sets, a huge volume. We have 100 teams that own our data, and quality is everyone's job and no one's metric. We have repeated work. Every team potentially repeats and rebuild the same checks from scratch and slightly in different ways. And we don't have measures to say, hey, is this data set out? It depends on who you ask. So what approach we follow? We try to standardize it, measure it, and scale the ownership.

01:25 Standardize, measure and scale ownership

First of all, we thought about standard check, one automated baseline of checks that every critical data sets would share. Second one, we thought about a data quality score, a single number that every person, a non-engineer, can read and act on. And third, we choose to use SodaCloud to give visibility about the checks and ownership to every domain. The baseline, we have standard checks that we create as a common quality baseline, a reusable bundle of automated validations for our public P1 and P2 data sets.

02:09 Standard checks: a reusable data quality baseline

One technical baseline, so teams stop rebuilding the same checks. The first release was based on anomaly detections and roll call. So every critical data set would not be allowed to drop lines, to drop rows. And we check about anomaly detections. So between one execution and another, if we catch any anomaly, we will throw an alert. The second release, we would check about missing values and primary keys, duplicate rows in unique columns, and new and blank validations.
So we started trying to cover all the main quality dimensions on our critical data sets. And how we measure it? The data quality score turned checks into a business metric. So we choose evaluation windows of 40 days and we check it constantly on this period. So we check the primary key completeness, the primary key uniqueness, non-nullable values, the row count, and it gave us a representativeness about how the data ecosystem health was.

03:14 Data Quality Score: turning checks into a business metric

If any check fails, we mark this data set for the window, and until a successful rerun, we alert the users and the owners about the risk of having a data set failing in the baseline while in the check. So, how it works under the hood? We have a repository of some standard checks wrote in SodaCL. It is the language, the common language, and we define which tables, which data sets will have the checks based on metadata.

04:14 How SodaCL checks run on Databricks with Spark

So every time we have a committee in a data set, every time we have a data set being wrote, we check if this data set should have a standard quality scan. and we run it in Databricks using Spark and the Soda library, and we monitor the checks and the results using Soda Cloud. So how Soda helper does, we have an open source engine running within your ecosystem, and we can integrate it with your Databricks cluster. So we run a Soda by Spark code with your Databricks clusters, and we check the data itself.
And how about the purple standard? As you can see, we really love the purple color. It is our brand, and we have a purple standard that defines which is the data standard that we follow, that we pursue. So it is a governance framework for every public data set, and data quality is one of these seven dimensions. We have data quality, data protection, metadata, privacy violation, incident recovery, and runtime health and efficiency.

05:28 The Purple Standard: governance for every public dataset

About data quality, we have five main dimensions that we include in this core in the proper standard. that is every public data set must not be empty. Every data set defines its primary key as in metadata. No empty values in primary key columns. Primary keys must be uniqueness. And no new values in columns declared as no nodes. So we get the promises made from the processes, and we evaluate these and ensure that the promises are being kept.
It is some numbers of our scale. We have 11 million checks being executed monthly. We cover 30,000 distinct tables within the ecosystem. We have an overall pass of 95%. We have some categories of checks. You can see the standard check that is the top today. Today, we have agreements solution by SodaCloud that users create through the Soda UI. We have data contracts and custom checks that users create on their own. We have the overall path of each category, and we are pursuing increase the path rate for standard checks on every scheduling that we run.

07:36 Highlights: what standard checks catch

We have some highlights. We today cover 76% of all the monitoring tables as standard checks. We have some highlights about the failure type that we catch with the standard checks, the baselines that we follow. and we can see that nearly one in five tables has had a new PK or not a new failure. So completeness is an important gap that we could catch with this standard checks. So the model scales by combining all three pillars. standard checks, so a common baseline on each critical data set that we have with your data platform.
Data quality score, a number that anyone can follow, can see, can act on. And SodaCloud, the vendor that we choose to support us and scale ownership across all the business. And what we are pursuing now, we are trying to include the user, the producer, quality checks on the score. So we are trying to move from the baseline, from the standard checks, to use the custom checks created by the producers as a score as well.

08:56 Next steps: custom checks and serverless compute

So it is a business improvement that we are pursuing. In addition to it, we are migrating from the Databricks classical computing for the serverless to gain more performance and decreasing our cost. So, thank you. We were working with our internal team to support this capability. I'm Wallace, and Henrique Baibieri was the tech manager that helped us to define the strategy and led the program. So, if you have any questions or ideas or contacts, please reach out.

Learn more about the Databricks Data and AI platform.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.