How to Share Braze Data with Databricks Using OpenSharing — Thread the Needle with Braze

Stephen Rosenfeld

Your Braze data should land in Databricks the moment it happens. Instead, it’s waiting on an export job.

Today that usually means Currents writing files to cloud storage, a job to load them into Databricks, and a schedule someone has to keep an eye on.

In this Thread the Needle video, Stephen, Stitch’s CTO, shows you how to switch from Currents to OpenSharing, Databricks’ open data sharing standard, so Braze shares its data directly with your Databricks account. Every send, open, and click shows up in your warehouse, governed like the rest of your data, with no exports, middleware, or extra jobs to manage.

 
 

Transcript:
 Your Braze engagement data shouldn’t need a pipeline to reach your Databricks warehouse. With OpenShare, every send, every open, click shows up in Databricks automatically. No exports, no middleware, just two settings, and I’m gonna walk you through it now. This is Thread the Needle, a series of short videos where we show marketers how to get more value out of Braze.

I’m Stephen, our CTO, and this is the first of a miniseries that will focus on how Databricks and Braze work better together. Each episode will focus on one connection between Braze and Databricks. Each building on the prior. By the final episode, you’ll get to see how composable these two systems really are.

And episode one here is getting your engagement data into the Lakehouse. The old way that it gets there is Currents. Currents streams events, files out of Braze to a Blob Storage, and that usually means it’s sitting in your cloud storage: S3, Azure, GCP, takes it and moves it into Databricks. And that works.

It’s fine, but it’s one more job that has to be managed. It’s one more thing that can break. It’s one more piece of the puzzle that causes latency between Braze and Databricks. And that’s how our sandbox was set up. So today I’m switching it from Currents to OpenShare and wanted to share with you how we would do that.

OpenSharing is Databricks’ open data sharing standard. You may know it by its old name, Delta Sharing, and instead of sending you files, the provider, in our case that’s Braze, shares its tables directly with your Databricks account, and you get to read them in place. So there’s no extract, no copying tables or syncing things, no jobs to run. On your side they just show up in Unity Catalog. It’s governed the same way the rest of your data is. Who can see it, who can query it. It’s all in one place.

So let’s jump into Databricks and start setting this up. The first thing we do is go to the gear icon in, on the catalog screen and go to OpenShare. Now, the first time you open this, you might get a pop-up that says you need some additional permissions, and you have to set your OpenShare organization name. But after setting that up, you’ll end up on a screen similar to this. On this page, all we need to do is copy our sharing ID. And now that we have our sharing ID on the clipboard, we’re gonna go over to Braze. We’re gonna go to Partner Integrations. We’re gonna go to Direct Data Sharing. We’re gonna say Create New Databricks OpenShare.

We’re going to paste in our OpenShare ID, and we’re gonna do engagement events and user behavior events. You may only be able to select one and then create data share And that’s what we have to do in Braze. Next, we are going to go mount the share as a catalog in Databricks. One thing you’re gonna wanna know before you switch is that this doesn’t backfill.

So it starts collecting from the day you turn it on. So you don’t wanna get rid of your existing Currents data. You, you need to turn this on, and then the data will start to flow into the share from there. Now, in Databricks, you can see my Braze share’s already showing up. We’re gonna click into that.

We’re gonna mount to catalog, and I need to create a new catalog name. I’ll just create a catalog dedicated to Braze OpenShare. And now our OpenShare data is flowing into Databricks. Now, again, my share right now is empty, but if I go to the Braze documentation, they give you a full schema overview of all of the tables and data values that come into Databricks via OpenShare.

And that’s it. Now my OpenShare is, from Braze, is linked directly to my Databricks catalog. And if I jump into the catalog itself, you’ll see I don’t have any tables in here yet. There’s nothing streaming in other than the, the information schema. And so now what I need to do is go into Braze and create a few different events so that they start streaming into Databricks.

So what I’ve done is I’ve set up a Canvas in Braze that I’ll call the OpenShare test. And when I look in here, you’ll see that I have several different steps. That’s the Canvas. So the first thing I’ll do is get a, an email message. Then I go through an A/B test and user update. So just a few different example steps that should result in several records and events coming through to my Databricks OpenShare catalog.

So now I just need to wait for my user to receive a message and to, to flow into the catalog. All right, so with that, I’m just gonna close this out, come back in here. Maybe we’ll refresh this page and see if anything’s been sent yet. Nothing’s sent yet, but if, if I go in… Okay, I do see that it’s sent one here in my current audience is one.

So let’s switch back to Databricks. And now I have my data lakesharing table and all of my OpenSharing tables from Braze. And let’s go into create a new query.

We’ll run a select that should show me just based off of a subset of tables that my proof should use. And there we have it. So we’ve got data flowing directly from Braze into our Databricks warehouse. No middle layer, no pipe, just OpenShare. Thanks for watching.


Meet the speaker

Stephen Rosenfeld is the CTO at Stitch, serving as a strategic technical advisor to the company’s largest and most complex clients. He works alongside Stitch teams to design and build data systems on Databricks and Braze that scale, follow best practices, and help clients adopt new functionality fast and turn it into real value. Connect with him on LinkedIn.

You might also like …