Skip to main content

Unity Catalog Open APIs: One Governance Layer for Spark, DuckDB and Every Engine

Summary

  • Multi-engine governance: Unity Catalog open APIs let Apache Spark, DuckDB, Trino and Flink read and write the same governed tables with one set of access policies, enforcing governance from every tool.
  • Open APIs and features: Credential vending, the Iceberg REST API, predictive optimization and automatic liquid clustering for managed tables enable external engines to safely write to managed Delta tables.
  • Tag-based ABAC: Row filters and column masks apply consistently across all engines through server-side scan planning, enforcing tag-based attribute-based access control policies.

Unity Catalog Open APIs: One Governance Layer for Spark, DuckDB and Every Engine

Watch: Unity Catalog Open APIs: One Governance Layer for Spark, DuckDB and Every Engine
Talk by Alex Jiang, Product Manager, Databricks ; Dipankar Kushari, Lead Specialist Solutions Architect, Databricks ; Racquel Yochem, Senior Software Engineer, General Motors
Unity Catalog open APIs let any engine, including Apache Spark, DuckDB, Trino and Flink, read and write the same governed tables under one set of access policies, so governance is defined once and enforced from every tool instead of reimplemented per engine. This video explains how Unity Catalog becomes the catalog for an open lakehouse, covering credential vending, the Iceberg REST API, predictive optimization and automatic liquid clustering for managed tables, and catalog commits that let external engines safely write to managed Delta tables, demonstrated with Spark and DuckDB writing the same table.
It covers credential vending, the Iceberg REST API, predictive optimization and automatic liquid clustering for managed tables, and catalog commits that let external engines safely write to Unity Catalog managed Delta tables. Demos show Spark and DuckDB reading and writing the same table with an audit of which engine made each change, then tag-based attribute-based access control (ABAC) policies that apply row filters and column masks consistently, including to external engines through server-side scan planning. General Motors closes with how it uses UC Open APIs for vehicle order ETA predictions with centralized auditing.

Chapters

FAQs

Why is governance inconsistent when using multiple engines?

Different data tools like Spark, DuckDB, Trino and Flink traditionally implement their own access control and governance. This fragmentation means governance policies must be reimplemented per engine, creating inconsistency and compliance risks.

How do Unity Catalog open APIs solve the multi-engine governance problem?

Unity Catalog open APIs provide a single governance layer that applies to any engine. Credential vending, the Iceberg REST API, and tag-based ABAC policies let you define access control once and enforce it consistently across all engines accessing your data.

What are catalog commits and why do they matter?

Catalog commits are a feature that allows external engines like DuckDB to safely write to managed Delta tables in Unity Catalog. They enable multi-engine write operations while maintaining data integrity and consistency across the platform.

How does General Motors use UC Open APIs?

General Motors uses Unity Catalog Open APIs for vehicle order ETA (estimated time of arrival) predictions with centralized auditing. This allows them to leverage multiple compute engines while maintaining unified governance and audit trails for compliance.

Full transcript

00:00 Introduction

Thank you to everyone who came. Let's begin. So today we’re going to talk about how Unity Catalog enables interoperability through our open APIs and single governance, allowing you to define your access policies once and apply them from any mechanism or tool in your data set. Ultimately, our goal with Unity Catalog is to enable enterprises to realize the vision of an open lake, where they can use any compute engine to access a single copy of their data .
And I'm joined here by my colleague Dipankar, as well as Raquel, who represents General Motors and will talk about a real-world use case for open APIs. Before I begin, just a disclaimer: this presentation is for informational purposes only. Any statements we make are not promises by Databricks or General Motors. And as a reminder, after the presentation, please don't forget to fill out your surveys. Any feedback you leave will be important for us to improve our future sessions, as well as improve the next Data and AI Summit.
Before we begin , a brief introduction. My name is Alex. I'm a product manager at Databricks, where I work on Unity Catalog compatibility, as well as open table formats, including Delta and Iceberg. And if you want to talk to me about these topics, please find me after the session. You can also talk to me about where to have dinner in San Francisco. I know many interesting places for dinner and will be happy to provide any recommendations.
Hello everyone, thank you for participating. I am a dedicated solutions architect at Databricks. And I work closely with Alex on UC or Unity Catalog compatibility, and also working with metric representations and Lakehouse. So, if you want to discuss anything, I'm here. We can share ideas. Hello everyone. My name is Raquel Yocum, and I am a senior lead software engineer at General Motors. I'm in Austin, Texas, and outside of this session, you can talk to me about GM automotive trends, inventory optimization, or even ask me about Formula 1 and fun events related to cars and coffee.
Perfectly. Now that we've covered the introduction, let's get started. So , as an agenda, we'll start by talking about what the vision of Open Lakehouse is and what exactly motivates it. Then we'll dive deeper into how Unity Catalog helps realize this vision through interoperability and open APIs, as well as through unified management. Next, we will conclude with a real-world use case from General Motors and leave the rest of the time for any questions and answers.
So, let's start by preparing the foundation of the open Lakehouse. Let's say there is a company called Sugar Mill. Keep in mind that this is a fictional company, but let's assume it's a candy retailer that's been around since the 1980s. They own some of your favorite candy brands, such as Starbursties and Choco Blocks. And Sugar Mill has been expanding rapidly over the past few decades. They have over 10,000 stores worldwide.

03:01 Why fragmented engines create inconsistent governance

They own over 1,000 different candy brands, some of which they acquired through acquisitions. And because of their scale, they have so much data from all their stores and all their online sales. They process over 10 petabytes of data every year, and their data set is becoming very complex due to all their acquisitions, new tool implementations. They have over 20 data processing tools and platforms that they use simultaneously.
And Caramel , Sugar Mill's CIO, is very concerned because she believes that Sugar Mill's data is scattered all over the world. The finance team, marketing team, and engineering team all use different tools and platforms to process data, and now they have multiple copies of the same data set. They have multiple sets of access policies and there is no way to ensure that all of their data and policies are consistent. And this problem simply becomes unsustainable on their scale.
So, after deeply exploring the Sugar Mill data set, they started with Teradata as their computing, catalog, and data accounting system. Eventually, they also started implementing Snowflake when the cloud era began and the marketing analytics team wanted to use Snowflake to do a lot of analytics and data storage. And when AI/ machine learning use cases emerged, they also adopted a data lake where they stored Parquet and unstructured data in cloud storage, used Hive and Ranger for policies as a catalog, and used a variety of compute engines such as DuckDB, Trino, Spark, and Flink.
The problem is that this data state is not really unified across all these different repositories and lakes. They have to maintain multiple copies of data and multiple copies of access controls, which makes management at scale very difficult. And this problem is not unique to Sugarmill. This is a problem that many businesses face. And the simple truth is that managing massive amounts of data is very complex at an enterprise scale.
Enterprises often have multiple data sources in repositories, data lakes, and databases . They also have a variety of AI data and assets , such as tables, files, and AI models . And there are also many different data formats used on different platforms, such as proprietary formats, as well as open spreadsheet formats such as Delta, Iceberg, and Parquet. So, there are three main problems that many businesses face even today.
The first is that AI data and resources are isolated on different platforms. They are essentially locked in walls and cannot be interacted with. Another problem is fragmented management, as each platform and tool has a different way of defining access policies, which really increases the burden on administrators. And finally, there are the increased costs associated with having to duplicate storage or compute across all platforms in your data set.
So what is the vision for an open Lakehouse? Well , the vision of the open Lakehouse is designed to address each of these issues. Instead of AI data and resources being isolated, the vision is to allow access to data from any engine or tool without being tied to a single vendor. Instead of fragmented management, administrators can define policies once and apply them consistently. And instead of storing copies of your data, which increases storage costs, you can store a single copy of your data in an open spreadsheet format that works with any engine, tool, or platform.
And Unity Catalog pioneered the creation of a catalog for the open Lakehouse. In Unity Catalog, all data is stored in open table formats, including Iceberg and Delta Lake, which can be read, created, or written to by any query engine, such as DuckDB, Trino, Spark, or the Databricks engine. Moreover, even if you use other tools and platforms like Teradata, Snowflake, or BigQuery, you can actually bring that data into Unity Catalog management through what we call federation .

07:14 Unity Catalog as the catalog for the open lakehouse

And this control doesn't just apply to tables and structured data, it also works for unstructured data like files, images, and PDFs. And it also extends to artificial intelligence models, agents, MCPs, etc. Considering the latest trends in the industry. So after implementing Unity Catalog, Kara is very satisfied. Unity Catalog has unified their data tools and platforms and allows them to maintain just one catalog, one copy of data, and one set of policies.
But Kara thinks it's witchcraft. She wants to understand how it really works. So let's dive deeper into what makes this possible. So, the basic principle of Unity Catalog is that all data access goes through it. Whether you are a data engineer, data scientist, or warehouse manager, you need to identify yourself to Unity Catalog, and Unity Catalog can decide whether to deny or allow you access to the data you request.

08:28 Credential vending for any engine

So, Unity Catalog handles both user authentication and authorization. And selling credentials is the underlying technology that allows any user to use any mechanism to access data managed by Unity Catalog. For example, let's say you're a financial analyst at Sugar Mill and you're trying to figure out what revenue you generated last year. You can execute the query with Apache Spark. Apache Spark then authenticates you against your identity, which will allow Unity Catalog to verify your permissions on the revenue table.
If you actually have permissions to this table, Unity Catalog will provide your engine, Apache Spark, with temporary credentials that Spark can then use to execute your underlying query. And the best part is that administrators don't need to configure extensive , long-term cloud credentials for the mechanisms. Unity Catalog automatically handles the provisioning of credentials, which greatly simplifies the process from an administrative perspective.
And this is possible not only within the Databricks platform, but also for external mechanisms , as Unity Catalog has open APIs that can handle the sale of credentials to external mechanisms. So, whether you're using DuckDB, Spark, Flink, or Iceberg REST clients, which can also include what I just mentioned, as well as PiIceberg and Kafka Connect , you can communicate with Unity Catalog through our open APIs. We have Unity REST API for Delta customers and Iceberg REST API for Iceberg customers.
Unity Catalog can provide credentials to your engine to read, write, and create data in tables managed by Unity Catalog. So, upon hearing this, Kara is very pleased. She is glad that Unity Catalog provides compatibility. They can use any computing engine to access their data, but interoperability is only one part of the story. Kara also wants to make sure they get the best value for money . And, in particular, they face three different problems.
First, they find that many of their tables are wasting storage space. So in open table formats like Delta and Iceberg, there is a metadata layer and then there is a data layer where the data is stored in Parquet files. And they find that in many of their tables, there are many data files that are not actually referenced by metadata , so they are no longer needed. But the problem is that these files accumulate storage costs.

11:13 Predictive optimization and automatic liquid clustering

So they pay a lot of money. There is also the problem of inefficient queries . They try to execute a query where the repository ID is 4872, but find that the rows relating to this are stored in several different files. So to execute a query, the query engine has to scan every file in the table, which is very inefficient. And they also see that the sizes of many of their Parquet files are suboptimal. They are either too small, which requires a very high amount of I/O, or too large, which results in very slow writes.
Fortunately, with Unity Catalog’s managed tables, Cara and SugarMill can optimize the cost and performance of their tables. So, " under the hood" we have a feature called predictive optimization that can automatically perform optimizations to reduce storage footprint as well as speed up your queries. The principle of its operation is very simple. We analyze your tables and query access patterns in those tables. Then, “ under the hood,” we run a model that predicts the best optimizations to improve cost efficiency .
And then these optimizations are actually performed on these tables in the background . So your data managers don't need to actively do this. All of this is automatically processed by our platform. Some specific examples of operations that predictive optimization performs include automatically cleaning or removing unnecessary files from storage, which solves the first problem. There is also organizing the data layout for best query performance based on which columns are accessed frequently, using our feature called automatic fluid clustering, which changes the layout of your table data, which solves the second problem.
And then, predictive optimization also automatically adjusts the sizes of your files for fast reading and writing using automatic compression. And after implementing UC managed tables, Kar is truly satisfied. Their costs went down, their requests were faster than ever, and they saved millions of dollars. And this does n't just apply to Sugar Mill. Overall, our customers see up to 20x faster queries and 50% lower storage costs.
But Kara is a little worried. Hmm, she still cares a lot about compatibility. And what she hears about UC managed tables makes her concerned about attachment. So she wonders if these managed tables are still accessible from outside of Databricks? And the answer is yes, because managed tables, under the hood, are simply tables in open table formats like Delta or Iceberg. And you can use our open APIs to create, read, and write to them from external mechanisms .

14:03 Reading and writing managed tables from external engines

And in fact, yesterday we announced a public preview of external functions for reading, creating, and writing to UC Delta managed tables . So after the session, I encourage you all to give it a try. This works flawlessly. Uh, we have connectors listed on the screen with various engines, and the ecosystem continues to expand as we invest in Delta Kernel, which is essentially a library that abstracts the Delta format and makes it very easy to integrate engines with Delta tables.
And what actually makes this possible is a new paradigm that we've introduced called directory commits. And catalog commits essentially make Unity Catalog a centralized commit coordinator, rather than a file system. So, to give an example of why the filesystem might not be the best commit coordinator, let's say you're trying to use an external engine to write to a table. Unity Catalog can give this engine credentials to write to cloud storage, but the problem is that the engine can do whatever it wants within the confines of, uh, an S3 bucket or whatever cloud storage you're using.
Thus, the directory does not actually have visibility into what operations are being performed , which can lead to risks of corruption, for example. But if the directory is in the path of all commit operations, the directory can actually go in and check all of these external commits or writes, and determine whether they are safe to add to the table state. And the good news is that now that Delta uses directory commits, it actually makes the Delta format more similar to the Iceberg format.
So, Iceberg was already designed with catalog commits in mind. It has always been a directory-oriented format, and with directory commits, Delta is now also a directory-oriented format, paving the way for unification of formats. We heard about this on Tuesday at the keynote, where we're trying to make both formats essentially the same "under the hood" so you don't have to worry about which format to choose. All you need to worry about is using the engines, platforms, and tools you need.
Um, and any engine can integrate with both Delta tables and Iceberg tables. So, in addition to allowing safe external write operations, catalog commits also have a number of other benefits, such as multi-statement transactions , because the catalog can essentially coordinate transactions that may span multiple tables. And this allows for auditing of external operations, because now when a write is done externally, it has to go through the directory.
This way, the catalog will know which engine is writing data, what or which engine is writing to the table, and what data is being written. With that in mind, I'll hand it over to my colleague Dipankar to demonstrate this compatibility feature. Thank you, Alex. So, let's move from presentation mode to CLI. So, in this demonstration, we'll see what Alex has been talking about so far. Well, we will use Apache Spark and DuckDB, which are installed on my laptop.

17:28 Demo: Spark and DuckDB writing the same managed Delta table

And we will use them to perform DML operations on managed delta tables. So, right now I'm running a Spark session on my local laptop. So, you'll see that each step explains what it does. And then, if you want to follow along, you'll see what the next step is. So, now a bunch of Spark configuration is shown . The important thing is that we use a directory called Sugar Mill. And this is the Databricks workspace. Where can I access this directory?
The default directory is again Sugar Mill, and that's a bunch of jar files that we're using for this particular session. So, let's begin. So, the first thing we do is create a schema called sales if it doesn't already exist. And then we check if there are any tables. So now we look at the catalog explorer in Databricks and you can see that there are no tables, which is the reason . So, let's create a managed delta table.
This is a simple sales fact table, detailing where you have products and region, and the amount of their sales. So, essentially, it's a combination of product and region and the total sales for that. So, the table is now created. So if I come back here and refresh the page, you'll see the table is displayed here. But I haven't used DBR or Databricks Runtime at all. I'm just using Apache Spark from my local computer to create this.
One of the things to look out for, which Alex talked about earlier, is the table property that provides directory commit enablement for the table, which actually allows this to happen. So, in this case, the directory or Unity directory is the commit coordinator. And now we just describe the table. This is a managed delta table, as I told you, and also the catalog commit is enabled. So, now let's perform some DML operations.
We start by adding 10 new rows. So, the insertion is complete. Now we read this data. OK? It's simple. So the next thing we do, the purpose of this step is to show you that this also works with creating a table as a selection. Very powerful. So, in this case, we are actually summing the data. So, we get detailed factual data, and now we summarize the factual data for the total sales for a specific region. Again, this is enabled by a catalog commit for this table.
This is another managed delta table, and it performs aggregation. He calculated the number of orders and the total sales. So, everything we've done so far is in Apache Spark. Uh, all these steps created two tables. So if I go back to the Databricks UI , I see that there are now two tables there. If I want, I can even go back and check the sample data in the UI . So, coming back. So now we switch the mechanism. This is important because I'm going to read the same table that I created with Apache Spark, uh, into DuckDB.
So, DuckDB is also installed locally . This is the configuration for DuckDB. Again, uh, the directory is a sugar mill, and it accesses the endpoint of the workspace, the same workspace. So , let's first start by reading a table, which is a managed delta table, from DuckDB. So, this reads perfectly those 10 records that we recorded from Apache Spark. And now I'm performing, uh, a DML operation with DuckDB on the same table.
So now you can see that I have two more additional records written from DuckDB to the same managed delta table. So, once you have new detailed data for the fact table, you will also need to update the pivot or summary table. That is exactly what was done. This pivot or summary table is now being read. And you can see that the number for sunrise and sunset that DuckDB recorded has increased. And now the audit. So in the last step we show you that if we describe the history of this sales fact table, it will show the operations performed and the version number, as you know, Delta stores all these versions, as well as what operations were performed and from which engine they were performed.
So, if you remember, we quickly created a sales fact table with Apache Spark. So this is the first line, version zero. And then version one - we, uh, inserted 10 new records from Apache Spark again, and finally added two new records from DuckDB. So, after that, I'll turn it back over to Alex, who's going to give a presentation . Thank you, Pankaj. So, seeing that SugarMill can use managed tables to optimize price and performance and compatibility, CIO Kara is very, very pleased.
But she has concerns because in their dataset, Kara uses a lot of granular access policies that filter rows and mask columns, and she wants to make sure that these policies are enforced both inside Databricks and outside of Databricks using external mechanisms. So let's see what policies the Kara team defines in the Unity Catalog. So, Kara's team uses attribute access controls for granular control. And this is a feature that allows businesses to scale detailed policies.

23:43 Tag-based ABAC policies for row filters and column masks

So, there is a lot of sensitive data in the entire Kara data set . There are email columns appearing in multiple tables, address columns, phone number columns, and compliance requirements force them to mask this data from their employees . So the Kara team actually automatically tags all of this sensitive data with tags like PII equals email, PII equals name, PI equals address. And it allows them to define tag-based policies that are automatically applied to tagged resources.
So, an administrator can define tag-based policies once in the Unity catalog. For example, for columns where PII is name, mask the first and last names except for the first letters. For columns where PII equals SSN, display only the last four digits. And for columns where PII equals salary as a tag, display it as null. And once they define these policies once, they will automatically start applying to all tagged resources.
For example, for PI. name, once this policy is defined, every column with this tag automatically has this policy applied to it. This way , they extend seamlessly to tagged columns. Hmm, and the problem with granular control is that it's not easy to extend to external systems. So, let's look at a specific table. Let's say the Cars team has an orders table where the email column has a PII tag equal to email. The region column has a GDPR region tag and associated row masking and filtering policies designed to mask the email address, as well as filter regions where the region equals EU.

26:11 Fine-grained access control for external engines

Unity Catalog cannot simply provide credentials or then credentials for this table to external search engines because Unity Catalog cannot trust that these search engines will enforce the policies defined in Unity Catalog. These search engines may not understand Unity Catalog policies and may not have any idea about governance or policies at all. Therefore, Unity Catalog cannot securely send credentials directly to these tables using granular control.
But we can fix this by having the directory first filter and clean the data before it goes to external search engines. So now Unity Catalog can apply row filters to a region, apply a column mask to an email, and then provide external search engines with access to this cleaned data. And this is a feature that we recently launched. It's called cross-search ABAC, and it's in beta today. So, at a high level, it's essentially a centralized zero- trust model for any search engine that accesses your data.
This can ensure that any fine-grained or coarse-grained policies you define in the Unity Catalog will be followed, regardless of which engine you use. So, this helps complete the vision of unified governance. And if you dig a little deeper, what actually makes this possible is in the Iceberg REST API specification. So, I mentioned earlier that Unity Catalog supports the Iceberg REST API as a way for engines to interact with data in Unity Catalog, and part of the Iceberg REST API specification includes something called the Scan Scheduling API, which essentially allows external engines to delegate execution of detailed Unity Catalog policies.
And to help contextualize this, let's look at an example. So, if I am a user using an external engine to query the T1 table in Unity Catalog, the engine can call the scan scheduling API in Unity Catalog. Unity Catalog can then check the user's permissions and then filter the query table according to the user's detailed permissions. So, it will apply any row filters or column masks applied to the end user executing the query from the external engine.
After that, Unity Catalog can return a list of these filtered files for scanning by an external engine, and the external engine can access these filtered files to perform a query and return results to the user, while fully adhering to detailed policies. So, let's see what this looks like in practice. Thank you, Alex. So, we'll see two demonstrations. First, I'll tell you about event policies, how to configure them, and what impact they have on Databricks Catalog Explorer.

29:03 Demo: masking and row filters applied across engines

So, we are already familiar with the sugar factory catalog, where we created the sales schema and the "uh" schema , and also created all the assets from external engines like Apache Spark and DuckDB. Now we will focus on the retail scheme . So, a retail schema is a place where customer data, employee data, orders, payment methods, shipping and store locations, and all the data is stored. And of course, there are different levels of users.
There are power users, regular users, and users who should not see certain sensitive information. This means they are not allowed to see, for example, your Social Security Number (SSN). So now we're going to show you a bunch of queries that access these tables from the retail schema and show that sensitive data is available to this user. So, I'm impersonating a user who shouldn't actually see them. And I'm also an administrator when I talk about ways to limit this.
So I play a dual role here. For example, let's look at the data for these employees. They contain all this sensitive information that a less privileged user shouldn't be able to see. Similar examples with clients or online accounts. And then, let's say, this user shouldn't see data from EMEA either. They have access to data from Asia Pacific and North America, but not from EMEA. But in this case, we see that the user actually has access to data from EMEA, just as we have already seen, they have access to confidential information.
So, Alex already talked about tagging data for management purposes. Let's look at how this is used. So, we have a concept called account-level management tags. These are account-level assets. Tags act as key-value pairs. So you can have zero or more values. So this is an example where you have one tag called sensitive personal information (SPI) and you have multiple values for that tag such as name, address, SSN, etc.
And this is another example where this tag is just a tag, with no meaning. And we're going to use this tag for this particular tag to show an example of a row filter. And the other tag, which is Sensitive Personal Information (SPI), we're going to use to mask the columns. So now let's move on to the next step, which is where the tags are actually added to the asset. In this case, we add it to the column where the data should either be masked or where the data should be filtered.
So we call it RLS CLM column-level masking, and RLS is row-level security. So here you can see that I'm actually modifying the column to set the tag. Now remember that this tag had multiple values ​​of sensitive PII. Therefore, you need to specify exactly which value you want to use when you add it to the column. So, they are very similar. What I'm showing you is a manual way to do it, but we have an automated way to apply data classification.
If you have any questions about this , we can answer them after the session. But now, just for demonstration, I'm showing you a bunch of tags that are added to columns manually. In this case, through SQL, you can do it through the user interface, I'll show you. So these are similar examples of using sensitive PII data and then geo-region that you've seen before. So, I add this tag to the clients. So, once this tag is added , meaning we had gover tags, we add this tag to the column.
Now we do that, and you can also use the information schema to see which tags were added to which column. So, let's continue. So, the next step is to define the UDF. Now, when you are going to create a policy, you need a UDF that actually defines what type of action should happen to the column when the policy is applied. So, in this case, it is a generic UDF or user-defined function. So, it just means that when a user or policy passes a certain column, just show that specific masked value , right?
Do not show the real value. Uh, and this is a political construct. So if we go by the lines, this policy is applied first, this is the name of the policy. This policy is then applied at the directory level. So, again, you can apply a policy at the table level or at the schema level, but if you really want to scale it, the way to do it is to apply it at the directory level. Uh, then you will use this UDF to mask the columns.
So, you should remember this. And we already talked about what the rear column mask does. Uh, and then who does it apply to for what, that is, for tables. And then it's important when you say that when the tag value is particularly sensitive PII and matches an email, it's an alias. Then, uh , a specific UDF is applied to that specific alias. So in this case, what happens is when it sees a column that has an email tag, it passes that email address to the backend column mask, and this UDF just says to show that for users who belong to that group.
Here's how it works. Hmm, the following policies are quite similar. Hmm, yes, because they are all column masks. Let's look at the following , which is related to the row filter. So , it's a similar concept again. In this case, I simply create a UDF with two parameters. So it returns a logical value of true or false, and when the value doesn't match the specific value that you pass in, in this, uh, when the column value doesn't match the specific value that you pass in, then it returns true.
That's about it. The design is very similar. The only difference is that, if you remember, georegion doesn't matter, so it just shows the "georegion" hashtag when it matches EMEA, then, um, those entries will be hidden. So, with these rules in mind, let's see what happens. So when a user tries to access the same user, uh, so what I showed, this part is actually set up by the administrator. Now let's get back to the user persona.
So, when the user tries to access after all these rules are applied, see what happens in terms of column masking. For example, they will not be able to see the SSN. The same thing happens for all of these tables that have had tags applied to them. And then, from a row filter perspective, the user no longer knows about EMEA as a region because he's just trying to figure out what region he has, and he only gets APAC and NA, which is the desired result.
And then, if the user even knows that there 's something called EMEA in the region, if they try to try to query that, it won't return any rows. And finally, Alex mentioned that when you apply new tags, the policy takes effect, right? So, this is an example of that. In this case, predicting churn, we didn't add any tag to any of the columns, such as email. So I can still see that the user can still see it through plain text or any other plain text.
Now when the tag is applied to that column, you see the result where the email is. So, once you define a policy, the moment you add a tag, the policy will take effect. So, this is from Databricks. Now let's move to the CLI, and I'm going to access the same tables, the exact same tables that have granular access control, from the CLI that Apache Spark uses. So let me get to that quickly, and then we'll move on. So, again, I'll start an Apache Spark session.
This is a local session. One of the Spark configurations, let me start, I'll show you. Yes, this is the server-side scheduling configuration that Alex talked about earlier, which actually allows you to impose granular control on top of the tables that the policy is applied to, right? So, let's move on. The first thing we do here is read a table that does not have fine-grained access control enabled. So, we're just reading a table called " store locations", which we did n't deal with in the fine-grained access control example in the previous demo.
So, it displays normally. Now we will look at the client data. So, ideally the email address and full name should be masked, as it was masked in the Databricks environment. With server-side scheduling enabled, it should only display the client ID, but not the email and full name. That's what happens, and then we'll try to ask the region. So , in this case, again the expected behavior is to have an epoch and NA. And now, finally, we're going to make a comparison.
We query the employee table. Using SQL databases and Apache Spark, we get exactly the same result. OK? So, back to the presentation. So, we saw how the Sugar Mills dataset evolved based on Unity Catalog, right? At the bottom you have open data stored in open table formats, either Delta Lake or Iceberg, and it is centrally managed by Unity Catalog. And all of this structured data that was stored in tables is now centrally managed by Unity Catalog.
But a large enterprise like a sugar refinery will have more data assets, right? And artificial intelligence assets. So they'll have a bunch of PDFs or unstructured data. They will use MCPs, models, agents, and more. Unity Catalog can centrally manage all of its AI data and assets using UC. And with unified capabilities, they can support every use case they try to accomplish on the platform. For example, Unity Catalog can help them find their data assets.
They could use Unity Catalog to build their business semantics on top of their gold tier using Unity Catalog. We've seen several examples of this where they receive data, process it, transform it, and summarize it. Unity Catalog actually automatically creates linearity for them so they can understand how data moves between different levels. They can implement cost control using Unity Catalog. If they want to share their data in a secure way, they can use open data sharing.
And DQM also helps them monitor data quality. They can use Lakehouse Federation to join data from other data sources, such as Google BigQuery, Snowflake, or Salesforce. And they can take advantage of all the unified capabilities that Unity Catalog provides for all the data they bring together from these external sources. And finally, because all data is managed centrally, they can now use their chosen mechanism to query this data in a managed and secure manner.
And we even showed you that granular access control works when you try to access this data from an external mechanism. So with that, I'll turn the floor over to Raquel from General Motors, who will talk about their use case and show you how they're leveraging the UC Open API. Hello everyone. At GM we have a pretty practical use case now, and maybe you can apply these templates as well. But it's currently in development, so I'll talk about it and show you, um, a deep dive.

42:53 General Motors: ETA predictions with UC Open APIs

We have an enterprise solution that generates ETA predictions for each vehicle order moving through the supply chain. Currently, our application uses traditional machine learning. Our operations department processes over 100,000 event reports per business day on average. So what you see is an outdated version. Initially we didn't expect there to be bottlenecks, ahem, but we noticed that because our traffic was mixed and highly variable, we couldn't predict when to run our traditional search and training pipelines or when to get shipment data.
So that was a problem for us because we had a mixed workload. We encountered bottlenecks . Requests were processed faster than they could handle, and ultimately our expected arrival times were delayed. So we needed to rethink the essence of our architecture. Did we really need these real- time messages flowing through our operational warehouse? We already had a solution implemented in Spark, and by using the open API for Unity Catalog, we realized we could offload these workloads to an external engine.
This helped us keep our governance and auditing in a centralized management location in Unity Catalog, helping our compute stay agile and running in the background, while also reducing our costs. Okay, I'll show you two different patterns. One of them is our estimated time of arrival forecast. So, on the left, you'll see our shipment data going through our machine learning models generating predictions based on the shipment data.
And then we send outbound message forecasts through event centers. And on the right is the telemetry process. So, it's a little different. Telemetry has a large amount of data, but it uses an external process to pass messages through Kafka. And ultimately, both templates place data in delta tables managed by UC and Unity Catalog. So, two different patterns, but both benefit from Unity Catalog management and external mechanisms used to leverage open APIs.
So the advantage is that we are not trying to change the way these two processes work, but instead take advantage of open APIs for predictive data auditing and telemetry analysis. So I'll take a detailed look at our dynamic ETA process and show you how our mixed workloads are orchestrated. So, it all starts with these order management tools. So, for each vehicle order processed, we get an event. And then for these vehicle orders, we get data on subsequent shipment events.
We get these messages from our event centers, our consumers. And then these messages are processed in our Spark engine hosted in AKS. So , Spark is our orchestrator. And when we process these messages, we call our machine learning model serving machine learning, which is served in ML flow 3, and we get a real- time ETA. These estimated times of arrival (ETA) are then sent to our outbound event centers and relayed to our five field dispatchers.
And asynchronously, now with external permissions, we can write these ATAs to the audit table or audit schema. So, we have the raw incoming messages that we received above, we have the processed messages, we have our estimated times of arrival (ETA) and any errors caught during processing. So, now we have transformed our platform from a simple forecasting flow to a fully centralized end-to- end audit for all vehicle orders flowing through GM.
Thank you. Okay, that concludes our presentation .

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.