The future isn’t “AI instead of data engineering.” It’s AI plus well-structured context, governed logic, versioned rules, and strong feedback loops. That means the teams who win won’t be the ones blindly vibe coding their futures. They’ll be architecting better systems for deciding: * what survives * what gets trusted * what gets logged * and what gets corrected at the source If you’ve ever had to explain why the same customer shows up three different ways across systems, or why a dashboard changed after a metric definition was updated, this discussion will make you feel heard. Come for the insights, stay for the therapy! Let me know which part resonates most: MDM, context engineering, semantic layers, or feedback loops. Shane and I do these videos every month, so if you have something you want us to discuss, let us know and we can drive into it! Get full access to Chris Gambill at gambilldataengineering.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_00Hey, Chris, welcome to another Aura Ask Us Anything show, and sorry for everybody for being late. We had Substack technical difficulties, but we got there in the end. How are you going? You've been back-to-backing today, haven't you?
SPEAKER_01I have been doing all the things today, for sure. I just got off with Scott Haynes from Databricks. We created like a synthesizer with Omnigent. It was super cool, like just vibe-coded a database Yeah, like a synthesizer, like just a software synthesizer. It was super cool. Oh, wow. And 40 minutes from scratch. Prompt it, and it created it from scratch, and it worked.
SPEAKER_00That's one of those weird use cases for using a data platform for. Yeah. I won't ask how many butterflies were killed while you did that, but that's okay. Excellent. Hey, I think two subjects for today, unless people pop on and give us something else in the chat. So I think we got some questions. Hey, Matty, feel free to ask questions if you want, and we'll talk about anything you want us to. But at the moment, we had some comments earlier about the difference between context planes from
SPEAKER_00a technology point of view. And you know, that kind of thing. And then how to collect and gather context that would go into it. So that's one. And then I think you and I've been kind of talking or working on master data management, golden record stuff. So we might as well talk about that as well. So which puppy do you want first?
SPEAKER_01That's just coincidental. We didn't even orchestrate that. Like that was just happened to both be working on it. I mean, we could jump into the MDM piece first and then try to go from there.
SPEAKER_00Bringing back memories, right? I mean, it's been a while since I've done hardcore MDM. Like I thought it might've been dead, right? Master data management.
SPEAKER_01And that's funny. Like I saw that the other day and from my perspective, like, I think we didn't call it master data management for a while, but the concept was always there, right? People struggled with it. We just called it unified customer. We called it customer 360 or we called it something else, but it's really all MDM, right? In fact, even to that point, when I started my coaching program,
SPEAKER_01Like my, I have my people do three projects, right? Three custom portfolio projects. And the last one, I always make them do like MDM with deterministic matching and probabilistic matching and, and understanding what the differences are and benefits and cost of each one. And like, it's such an important topic for businesses, I think.
SPEAKER_00Yeah. I remember I used to work for SAS, the software vendor many, many decades ago before I gray here. And, uh, They had a subsidiary Data Flux that they bought, which was quite a cool tool. I really, really liked it. And it stayed a separate company from SAS, which is probably why I liked it. And what was interesting was that was used a lot for data quality, but also master data. And so back then, you know, we're trying to, I can't remember whether data flux was probabilistic or deterministic, but it was one of them.
SPEAKER_00And so we had to explain the two differences and then show them how it worked. And it had the whole, you know, dictionary, all that kind of stuff. Yeah. But yeah, I don't know whether master data management as a term is so common now. I mean, when I talk to people about it, they say they want single view, right? Hold a record. And the first thing I say to them is, okay, these two flavors, two patterns, which would you like? And now it's typically both. But I ask them if they want a single list. So if we have customer and CRM and in service and in finance,
SPEAKER_00so three sources that hold customer records not keyed the same across the organization because, hell, they never will be. And we want to bring those back and we want to say they're the same and have a single list of customers, right? That's a whole bunch of patents we have to do. And then the second one is single view, which for me is saying I've got a customer And they've got transactions in lots of systems. So they've got transactions in CRM and they've got transactions in service and in finance. And I want to bring all those transactions, all those events,
SPEAKER_00all that data into one place and be able to see it against that one record. And so I don't know about you, but I often find we have to do both, right? We have to go and take a bunch of things. Concept records and match them. And then we have to take a bunch of transactional event records and then combine them and store them against those concepts. Is that how you see it?
SPEAKER_01Yeah. Well, and that kind of goes to the matching piece of MDM and then the survivorship piece. And then you're layering in the transactional piece, right? Which is how we get to facts and dimensions, right?
SPEAKER_00How we get to hubs and links, yeah. Hubs and Links.
SPEAKER_01We'll call them Hubs and Links because it definitely gets more complex with MDM for sure. But yeah, when I've worked with some Fortune 500 companies, to your point, they have HubSpot, they have Salesforce, they have the random marketing team that's going out to events and keeping things on paper and bringing them back and putting them in Excel and wanting them uploaded. And then they always have some ERP system, right? They have their finance piece, so like a NetSuite or something.
SPEAKER_01And every one of those, like one company I worked with, every one of those had a different version of Tech Mahindra. Mahindra? Tech Mahindra? Is a company that operates globally. In some systems, it was Tech Mahindra Limited. And in some systems, it was just Tech Mahindra. And in some systems, it was like somebody abbreviated Mahindra to just Mahind and cut off the last part
SPEAKER_01of it. And you get that, right? You get that whether that is because there's multiple different systems or you get that the article that I put out this week was, you know, If somebody puts something in multiple times in a single system and maybe they misspell it 10 times and three times it was correct, which one of those records is the one that you want to survive? But This one company, the Fortune 500 company that I was talking about,
SPEAKER_01they needed to be able to see, okay, this is the cost of acquisition. This is what we're actually making from that customer. These are residuals. These are where it ties back into different opportunities at a global level for that particular customer. Instead of at each of the individual, think of like Walmarts, right? Walmart has a ton of different stores and then they have a master account.
SPEAKER_00Anyways, I talked a bunch. Yeah. No, I mean, I think we'll come back to that hierarchy of matching and then also the idea of what is a master and then the survivorship rules, right? But we've got a question from Matty. So what kind of reference tables would you implement in every single company you're working for? I'm interviewing for DEs now, and they are surprised when I even mention one calendar table for the whole team. Ooh, there we go. So when you talk about a calendar table, I automatically think dimensional modeling, star schema.
SPEAKER_00Because we have a calendar dim, right? And we need to be able to create that. Funny enough, if you use Data Vault, we don't tend to hold calendars or dates as a concept. We hold them as attributes, as detail. So it's really interesting, like, yeah, as soon as I hear calendar toggle and I hear dim, I'm like, yep, that's a lookup. Okay, but you go first. What do you reckon? Like, what? What types of reference tables? You can answer that many different ways, but yeah, let's have a go and then we'll get Meta to come back and see if that was actually
SPEAKER_00the question he asked us.
SPEAKER_01Yeah. So one calendar table for the whole team, for a whole org, right, can be okay. I think it depends on the org. So I've had situations where I've had like a, we'll stick with the kind of a date dimension type situation. Where, to your point, if you're in data vault, each domain, each vault is going to have its own attribute for what that date looks like.
SPEAKER_01Because you have these concepts of calendar year or fiscal year, which throws everything else off. And being able to track things by quarter, by week, by month, by day, And how granular do you need to get there? I went way down a different rabbit hole for a second, so I need to come back out. I did. Hold on.
SPEAKER_00So let's just take that one. So in the past, when I was dimensionally modeling, I would hold a reference table, which had my calendars, and I'd tag each of the dates with those date parts. Fiscal, calendar, calendar, calendar, calendar, public holidays, day of the week, right? But what we actually do now in BigQuery is we just treat that as calculated attributes because I can, well,
SPEAKER_00for the months, weeks, years, and day of the week and that, because I can basically create a calculated column That just looks at the date and gives me back those values whenever I need it. So we don't do the lookups from there. Now, if we were doing event dates, so specific retail holidays and those kind of things where the BigQuery functions by default don't do it, we may use a reference table and do a matching. But we may actually create that as a function that we can call that then calculates it, right?
SPEAKER_00So we're a little bit more kind of different when we kind of look at that one. So, yeah. So I suppose the key is if you're interviewing somebody and they say, hey, they have an alternative way of dealing with dates, then that's okay. If they're like, what's a reference table?
SPEAKER_01Then that's a problem.
SPEAKER_00Yeah. As long as you're hiring a junior and you've got good training, then you're okay. Right. You carry on where you were going with that because I've got some other things around reference tables. I want to jump in afterwards.
SPEAKER_01And to be fair, I talk to Matty every week. And so I know that he's hiring for seniors. So yeah, that's fine. I have a little bit more context there. But yeah, that was... I would agree. Oh, I remember where my train was going. Like right now, from a Databricks perspective, we want, you know, when you were talking, your favorite topic, medallion architecture.
SPEAKER_00It's not architecture, it's a classification system.
SPEAKER_01You know, in the gold layer, a lot of times we're doing star schema type stuff, right? And so we have... A calendar dimension that has all of those different columns, a single calendar dimension that we're using across the org. And what we do is often tag each of those columns with a specific tag so that somebody from sales doesn't necessarily need or want all the noise from all
SPEAKER_01the financial columns that are needed for that calendar. That way we could govern it. However, with metric views coming out, in my head, what I've started to consider and think about is, do we still need that? Or can that be a metric view that we're setting up? And then similar to functions or something, it's actually calculating it on the fly when the report's being run.
SPEAKER_00Yeah, and then you've got a couple of challenges there as well, right? So first thing is cost. Is it cheaper to join and store or query across joins than it is to calculate on the fly? So that's one thing I'd look at. Change. So if those reference tables are temporal, if you actually have to be able to change the data itself and you need to be able to track those changes, you pretty much don't want to do that as a function because now the function is going to have a massive amount of if statements in it, right?
SPEAKER_00And so you want to bring that back to data. One thing we tend to do is we bring the reference tables into our history layer, into our immutable persistent storage, and we treat them like any other data. So we actually effective date each record. We then track changes over it because that pattern just makes it easy for us going forward. We tend to apply those reference tables in our design layer if we can, but sometimes we will actually only combine them in the consume layer depending
SPEAKER_00on how late we want to bind those changes, like how often, and will people restate. So sometimes we have ones where we have a bunch of codes and there's a bunch of descriptions, and we've got one of those at the moment. And we know that those descriptions will change as people improve the quality of them. And so we'll late bind those reference tables. We'll bring them right to the end of the consume, join them there, and therefore one change restates over all time. And that's okay.
SPEAKER_00There's some other ones where we go, no, actually, it's the point in time that that reference data was created or effective for. That's really important. So then we're in our designed layer. We'll put it in there because now we're actually matching up the history stuff. Okay. And then the question, again, architecturally, you've got to place these principles down as principles or patterns that people can use because I often use it, like for MDM, I often use it for matching. You know, this equals that, right? So I don't have to write a big frigging case statement somewhere, right?
SPEAKER_00I'm like, no, no, just give the reference table where I can maintain those relationships because they don't exist anywhere else, right? That's the key is that data. We often use Google Sheets as a way for people to maintain their reference data because we can expose that to BigQuery without having to bring the data in, if that makes sense. So they kind of become external tables. So, yeah, when you talk about reference data, right, you start going down massive rabbit holes, especially architecturally and platform-wise.
SPEAKER_01Yeah, and you hit on a key point there too, I think. I'm a big fan of table-driven architecture where you're storing things in a table as opposed to storing them in code. It's just architecturally, I feel like it's more business friendly too. Especially when you're even outside of calendars and dates, like KPIs and metrics, right? Calculations for KPIs and metrics are always in flux.
SPEAKER_01Those are things that are living and you need to be able to track them to your point to overtime, right? Of, okay, this metric was this between this date and this date or this KPI was this between this date and this date. And, um, Yeah. I've even built tools where we layer in an interface for the business so that they could add and adjust KPIs as they need them. That way it's not a full software development cycle.
SPEAKER_01That way the data team doesn't get blamed for being the bottleneck in the process of creating a KPI that the business wants to track. Yeah.
SPEAKER_00It's interesting because we're doing some work on the metric stuff at the moment. So today I was just doing a mixed spike in experiment with Google BigQuery Graph in there. Well, they call metrics. I call them measures because it can only do sums and averages. It can't actually do any complex calculations yet. Fingers crossed it will. And it kind of reminded me that every time I'm using Clawed to help me do some work, it is constantly writing the metric in SQL itself. Yeah. And I'm just, I'm creating this reinforcement process for it to say,
SPEAKER_00no, the metric is stored in context. You need to go and see it and read it. And then I don't care if you write the SQL to execute it, but actually you can't make the thing up, right? Like don't keep recreating it. And it's, When it does it, it kind of makes it the same, but it's not looking at the master of my metrics. They're over there, right? I don't care who executes it because that's cattle, but I certainly give a shit about who masters it.
SPEAKER_01Right? Yeah, 100%. And to the point of the history tracking, having that when we do implement that front end for the business, tracking who changed it and making sure that it's governed as far as Who's allowed to change it? But yeah, because we care about who changes those things, right? And because sure as heck, if something goes wrong, right? The VP or whatever that's looking at that report's not going to their sales manager
SPEAKER_01or whatever that changed the KPI. They're coming to the data team to ask questions about, hey, why did this change or why is this wrong?
SPEAKER_00And if we think about that, I mean, I do laugh when people say that AI will replace data engineers straight away. And then we see those, you know, those sexy demos where, you know, they ask a natural language question of how many customers have got and it works. And then you sit there and you go, so let's just put all these Lego blocks we just talked about together. So I have customer in three systems and I need to bring it in and give me a single list of customer by doing some matching to say those customer records are the same. And then I'm going to get transactions from all those other systems and
SPEAKER_00then combine it so I have a single view of everything that we did with that customer. Some of that data might be driven by reference tables, right? So we have this set of manually maintained tables outside those systems that are saying this is this or this is these dates or the series of flags and they change over time. So we know that, you know, A month ago, this was the rule. And this month, this is the rule. We change our ETL code over time, right? So we have these version sets of ETL. Our data changes over time.
SPEAKER_00So the data we're collecting in from all those source systems is temporal and it has effective dates and change records. Our business logic that we use in our ETL may change. And then our metric definitions will change. Now, if you think about All those Lego blocks, all those potential changes to one record that can affect the number the VP gets, that's highly complex, right? And so it's kind of interesting to see whether the Gen AI tools will be able to deal with that complexity better than us.
SPEAKER_01Yep. Well, yeah. I sat through a demo yesterday of metric views and Omnigent, or not Omnigent, of Ontology, Databricks Ontology. And, um, And just layering the two together. And to your point of things being just SQL, the metric views there are just SQL. If you could do the calculation in SQL, then you could create that metric for it, which will be cool.
SPEAKER_01And having enough context to put into your ontology layer And for it to be groomed in a way that when that COO or CDO or your CSO or whoever goes out and asks a plain text question that they're going to get a correct, consistent answer for what they're asking, that all plays a role, right? Having those different layers within your system that work together.
SPEAKER_01That's going to be huge in the future. But none of that replaces data engineering, right? None of that. It evolves data engineering, but none of it replaces data engineering.
SPEAKER_00Yeah, I mean, I think it should accelerate us or assist us. Yeah, we'll see what happens when we get to automated AI and whether that works. But again, if we talk about that context, where do we find it? So one of the things that we've been quite lucky is, because I've been building our way of working and teaching and coaching it as well, I have a lot of material involved. That I've used to coach teams to do things the way we do them technically or
SPEAKER_00in terms of team design and our value stream, the way we kind of daisy chain the work and our factory. And so what I found is when I'm building out the context of how we work, I have this content that I can feed it. But I've still got to then go and actually refine it. So one of the things is Nigel did a little bit of the context guides and somehow it brought up the SED2 word and
SPEAKER_00then it just started seeding it everywhere and then it kept going. I can't find any facts. And I'm like, because we don't run a dimensional model, you dumbass. And then it took me a while to go, ah, that's where you're getting it from. Right. So I had to go back and edit the guides effectively, the context to take those words out because it's a language model. And, you know, but like your survivor record, it's all that word too many times. And it's like, that's, that's what it goes. So. If I think about organizations I've worked with, I don't see a lot of documentation about the way they work, right?
SPEAKER_00The policies, the patterns they use, the principles they follow. So I think, you know, to answer that question we had originally, it was like, how do we get context? I think we need context about the organization and I think we need context about our way of working and we should treat those as two different things. If you don't have a way of working context, you should start crafting it because I think that is going to help the agents work the way you do and understand what's been built before.
SPEAKER_01Right. Way better than any single engineer could do it. This is a group activity. This is not a data team activity. This is a full business activity to get that context.
SPEAKER_00Yeah, and there's a really good technique I used to use with teams when they were hiring. Not so much now, so maybe it's with agents. But what we used to say is do a draft of a piece of documentation. And then when somebody joins a team, get them to read it and follow it. And then they have to update it, right? They have to find something in there that is missing or confusing, and they have to iterate it. At the time that they're effectively reading it, right? So it's a point in time, not a month later.
SPEAKER_00And that constant iteration meant we got really, really good documentation. So maybe for, you know, Nova's hiring these days, right? So maybe with agents, it's write it, run it against an agent, see what it does, get feedback, update it, run it against, it's almost like a TDD, right?
SPEAKER_01Yeah. Yeah, yeah.
SPEAKER_00Yeah.
SPEAKER_01I like that.
SPEAKER_00Yeah, so let's jump on to context technology and then maybe we'll come back to MDM. What do you think, right? Everybody's talking semantics, contexts. Obviously, you're talking about omniagents and ontologies and all that, but are you really in harnesses? Are you really seeing anything nailing it at the moment? Because I'm not.
SPEAKER_01Nothing that really nails it, right? There's just... Obviously, I'm a Databricks person. We've had that discussion. And I think that the Genie ontology will be helpful. But nothing that is like, oh yeah, this is going to be the thing, right? I like the concepts. I like where everything's going, but there's still...
SPEAKER_00So talk me through that genie ontology, right? Because I could read it as a platform that has a structure, a schema, a product effectively that allows me to capture an ontology, right? Capture words or terms, definitions, relationships, and that kind of stuff. But I could also read into it that there's an out-of-the-box thing where I can ask for an ontology and it's going to give me the content itself, not just the tooling to create and store the content.
SPEAKER_00What's it doing?
SPEAKER_01So I was lucky enough to kind of see a demo of it. And so basically, so there's a couple of pieces to it, right? Just like you said, there is the knowledge graph type ontology that happens, right? Where based on Who is asking the question, because it's layered in Databricks with Unity Catalog and all the governance that comes with that, Genie will understand, okay, this is somebody in the sales org.
SPEAKER_01This is the, hopefully you have everything tagged, right, that you've uploaded into, uh, Into your ontology layer in Databricks. Databricks is also coming out with this new concept called pages, which is kind of like the confluence pages, right? And you could upload markdown files, you could upload PDFs, plain text files, so that it has all this context, right? And there is a concept of a trust value, right?
SPEAKER_01Who has contributed that document? Who the creator of that document is? If they have other things, we'll stick with sales, right? If they have other things in the sales org that they contribute to, then their trust ranking would be higher than somebody that has one thing sitting out there. And you can thumbs up or thumbs down when you get an answer and it will raise or lower that So that the next time that Genie comes through and starts to look at
SPEAKER_01that ontology layer, it will maybe pick a different document because you thumbs downed that document the last time. So it's kind of that learning loop based on that feedback that you provided.
SPEAKER_00So again, the thumbs up, thumbs down come out of our catalog friends, right? That was a feature out of catalog technologies. And then I just wonder about survivorship. So if I'm vibe coding with Claude to create these markdown files and then popping them in there and then I'm getting volume, right? I've done lots of sales documents, even though they were all completely vibe coded. I'm going to get up the ranking, right? I'm just kind of thinking that through. And then I'm not, so this is interesting. So when you say ontology, But then you talk about storing documents.
SPEAKER_00It kind of looks like they've got a platform for context, but they're calling the platform ontology, right? Because...
SPEAKER_01It's an ontology layer that looks at that context, right?
SPEAKER_00Ah, okay. Right. Okay. Because I think if people...
SPEAKER_01It uses the context to graph out the ontology, right?
SPEAKER_00Okay. All right. Okay. I'll be keen to see how it does that. Yeah. I'm still of the opinion that actually humanally... I think... I think that type of context is actually the thing that will make or break the Gen AI systems, and therefore I think it needs to be a human in a loop. In theory, that's what the anthropic paper that came out said as well, right, as they tried to generate it and got 65% hit in the evals, and then they put a human in the loop to write it properly, and they went straight up.
SPEAKER_01So I'm going to be intrigued by
SPEAKER_00that.
SPEAKER_0185% or 87%, yeah. Yeah, something like that, yeah.
SPEAKER_00There's something in the 80s,
SPEAKER_01I feel like.
SPEAKER_00Yeah. Okay. All right. Well, I'm with you. I think we're still in the early days of context technology. Yeah. We're seeing the catalog vendors try to move into it. We're seeing the metric BI semantic layer vendors try to move into it. We're seeing all the platforms move into it because they know how important it is. Yeah. So it's kind of a fruitful.
SPEAKER_01Even JIRA, right? With Rovo. Rovo will read the confluence pages to try and determine what you're doing, right?
SPEAKER_00And Hopefully it reads the last updated date, right?
SPEAKER_01So that could even bring us back to the MDM strategy piece, right? You're talking about deterministic rules and stuff. What deterministic rules do you use? Master context. Right? Master context.
SPEAKER_00That's a whole new category that we've just depicted.
SPEAKER_01What survives, right? Your MDM strategy of what survives in your context layer.
SPEAKER_00So actually, it's the same patterns, isn't it? Really.
SPEAKER_01Same pattern, right? It's the same pattern, yeah. All of these things kind of grouped together and... You have some type of trust hierarchy of in this case, it's a first contributor, but you know, historically it's been whatever system it came from of this attribute is mostly this has a higher trust value from Salesforce. And this attribute has a higher trust value from your ERP system because it's the billing address and well, we're getting money.
SPEAKER_01So they're being billed and they're receiving their bill. Right. Um, That was probably more true back in the day. Now people get e-bills and probably goes back to the email address.
SPEAKER_00Address email and phone number is still a bit of a bitch, right? Especially in fraud use cases where they don't want you to find them. So actually – That's the third master data pattern though, right? So I talked about single list of a concept. So single list of customer, supplier, product, single view. So all the transactions for that supplier, all the transactions for that product. But the third one is surviving attribute. Yeah. I now have a list of customers and they are a single list.
SPEAKER_00But that customer, Bob, has a phone number and three systems. So which phone number is the surviving phone number when we do that, right? And again, it is the same techniques, but it's another use case or pattern that we have to apply that hierarchy and survival record patterns to it.
SPEAKER_01Yeah, and that's such an important piece in that whole MDM concept, right? Is what survives and how do you determine what survives, right? And I go back to that that is a data engineering function and it is a business conversation, right? Sometimes what survives needs to be a conversation that you have with like a COE, right? You know, kind of your Justice League for lack of a better term, right?
SPEAKER_01Because I'm a big nerd. And so you put together your Justice League and you've got somebody from marketing, somebody from sales, somebody from finance, you know, somebody from each kind of business unit that you could kind of hash out, you know, For each attribute, what is the source of truth? I hate that statement. But what is your source of truth for each of those attributes? And then the data engineer takes all that context back
SPEAKER_01and sets those deterministic rules based on that information.
SPEAKER_00Yeah, and so, again, I tend to work on deterministic rules first if I can. Code that says, if I see this, it's that. So one we're doing at the moment is content titles for a customer. So they fund media content. And so when we're grabbing the data from, say, linear or TV or video on demand, we'll have Shortland Street, and we'll have Shortland Street bracket, close bracket, because that's a rerun.
SPEAKER_00Now, actually, funnily enough, they want to see both, but that's always good. But we know deterministically that we can then encode something that says if we see some words up front and we see our bracket, our bracket, we can infer that and take that off and match it, right? The same with episodes and a bunch of other things, right? We can say if we strip out that episode pattern, we know that that's the same content title. But then we get to YouTube. And the YouTube content,
SPEAKER_00the publishers change the title on a regular basis because they want to get more reach and engagement. And so that's a lot fuzzier, right? It's not a rule. And so that's another level of matching. And so we can't deterministically do it first, right?
SPEAKER_01So for YouTube, And this is getting into the weeds for a second. But for YouTube, there should be an underlying ID for each of those videos that doesn't change.
SPEAKER_00Yes, there is.
SPEAKER_01And you should be able to use that
SPEAKER_00as your matching criteria.
SPEAKER_01But to your point, if you're using titles, yeah, there are some platforms that people are changing their titles all the time to try and either... And even in some, right, if you're doing like A-B testing in YouTube... It might show up one way to one person, one way to another person, literally in the same second, right? Have a different thumbnail, have a different title in the same moment.
SPEAKER_00Yeah. And so one of the things we're kind of experimenting now is rather than spend a lot of design time up front trying to figure out what the deterministic rules are. So we have a bunch of simple ones that we'll take, as always, the 80-20 rule, right? We'll take care of 80% of it. We've just been prototyping this idea, and I'm sure I kind of, was that data flux? Maybe, maybe not. Maybe it was zero. I can't remember. But this idea of treating it as a reconciliation problem, right? A left-right. So...
SPEAKER_00Giving a person in the loop saying, here's what the master is, and here's what we think the match is, and here's why we think it's a match, accepted or not. And then using that data, the click data, effectively, to help reinforce the model. The fuzzy model, right?
SPEAKER_01The fuzzy model, yeah. Which brings us to the fourth pattern for MDM, right? So you do your best to match, you do your best for the survivorship, but inevitably things fall out, right? You cannot come up with deterministic rules and fuzzy matching is not going to catch everything. And so you put into place a pattern, that feedback loop pattern, right? Of you expose and say, okay, business stakeholders, here's what fell out, right?
SPEAKER_01What matches? And let them determine, OK, then give them some button clicks to be able to do what they need to do there. And there's kind of two patterns here. Or you reinforce data grooming and you have them fix that in the source system so that the next time that MDM pipeline runs, then things match the way that they're expected to.
SPEAKER_00Which is the way we should do it, right? Because then the system's right. Anybody that uses that system sees the right name.
SPEAKER_01That's really where we should be. So I'm a big fan of, okay, this is how it should be done. This is how it works in reality, right? We've had these discussions before too. But yes, I'm a big fan of pushing it back to the system, getting it right in the system. And sometimes the Political environment in a business, sometimes the time constraints or whatever excuse of the moment is for the business,
SPEAKER_01whatever challenges the business is, sometimes that button click of, okay, yes, these match, is the only feedback that you're going to get, and you're not going to get them to actually go back to the source system. Depends on the support that you have with the other leaders of the business, right?
SPEAKER_00Actually, I'm wondering of things like MCPs now. Whether we could actually close that loop now.
SPEAKER_01We could. I've built systems where we give them the button clicks and we say, okay, this is what matches. And then we enrich that data back to Salesforce. And we're, as a data engineering function, actually pushing back into those systems, those corrections that have been determined by the business.
SPEAKER_00Yeah, rather than submitting it to a data stewards committee that meets once a month and always too busy. Yeah, I wonder if that's the answer now. And with everybody wanting to use the MCPs to read the data, the fact that we can use it
SPEAKER_01to push back is actually quite valuable. And that depends on the size of the business, right? A smaller business. Probably more cost efficient to just get them to push it to correct it in the front end. And where do you want to incur that cost, right? You're going to incur that cost somewhere, either in man hours, fixing the front end, or in compute, programmatically doing it. And it depends on kind of the quality of your data, too. If your data is crap, right?
SPEAKER_01I mean, and you're... And there's not that reinforcement coaching loop back to the business of let's make sure that we're trying to do everything, our due diligence up front of putting stuff in. Then I've seen where businesses don't have, where data teams don't have that support to push that coaching back to the front end, people doing the data entry. Then... The compute costs continues to scale and increase as well to make those corrections
SPEAKER_01because the business learns that I could just put in whatever and the data team's going to fix it on the back end. It's one of those things that you have to balance and make sure that there is some type of coaching and feedback loop in the business that's supported by your leadership.
SPEAKER_00And then one of the other patterns that we used to do was the idea of dictionaries, right? So William, Bill, same term. So we used to run these dictionaries of common terms. Now, I mean, I'm just guessing we can just LLM there, right? We're treating it as almost an on-demand function. We don't actually need to hold these dictionaries of terms in their relationships anymore because we just call an LLM and it Would it be probabilistic? Well, yeah, that's the question.
SPEAKER_01It'd be probabilistic, yeah.
SPEAKER_00Yeah. Yeah. Or do we keep it deterministic? Do we keep the dictionaries and use LLMs to help us draft them?
SPEAKER_01So, funny story. So, so many tools, even when you're using a... A lot of those tools out, those kind of data dictionary type tools out there, whether it's Databricks or Fabric or what's that other big one? I don't remember. I'll come to me here in an hour when we're done.
SPEAKER_01But like literally there is a button that you click that it auto-populates with AI your Your definition, right? You have the chance of deterministically filling it in or probabilistically hitting that button and letting AI assume what's going on there. And I've seen people that just go through and just click the little magic wand
SPEAKER_01and hit save and move on to the next thing that they're curating, right? And
SPEAKER_00imagine, again, we're back to the model, the context model, choosing the most active person in that domain. And now Mr. Clicky, clicky, clicky, clicky is winning because they're seen as trusted.
SPEAKER_01Yeah. Yep. Exactly. Because it looks good. Somebody else looks at it and they're like, yeah, that looks good. And then they've all of a sudden done 50 million of them.
SPEAKER_00It's a bit like how many tokens burned and how many PRs you've committed, right? How many co-commits? That's a sign of, yeah, if you're a top contributor of something, quality or not.
SPEAKER_01Yeah. Yeah. Yes. Now I'm trying to look up the name of that data dictionary company.
SPEAKER_002 a.m. You're going to be like, bing!
SPEAKER_01That's the magic time, right? Oh my gosh, I can't believe I can't remember. That's right. If you stop thinking about it, we'll come back to you.
SPEAKER_00And then, so we've got these different Rule sets, basically, right? Some of them deterministic, highly trusted. We put them up front. Then we get down to some more fuzzy, lots of other fuzzy things, distancing algorithms, a whole lot of other ones. And so, again, we've got to be able to observe which of those rule sets was applied to match that record. So we should be logging that.
SPEAKER_00We should be saying, when we did this match, we used this rule set, and therefore this was the thing that took the action to match it. And potentially if there's a human in the loop, this person said yes as well. Because otherwise we've got no idea what happened, right?
SPEAKER_01Right. Well, and I think that that's a feedback loop too, right? If you have your system, if you do, you know, we talk about build versus buy and you build it, you should have part of that build be that one, like you said, we're stamping that rule that was used to do that deterministic match. And then over time, you're curating that too, right? Of, okay, we have this deterministic match.
SPEAKER_01But the business pushed back on 10% of this. Do we need to revisit that deterministic match, right? And you're storing, logging, tracking, all that so that you can make those adjustments over time. Because deterministic matching can be a living piece of your platform and survivorship rules, right?
SPEAKER_00But one of the things we do is we, so we version our change rules effectively our transformation code. Although we do it slightly differently in that our context holds the logic and our code's cattle, right? So actually we version the context, right? This is the logic that we're using and the code itself just gets generated, run, and then disposed of. But whenever we insert a record or change a record, we tag back to the unique ideal GUID of this piece of logic with this version.
SPEAKER_00So we know what piece ran. Often when I'm working with data teams and I ask them that question, say dbt, so how do you know which dbt code ran to populate their record? And they don't log it. Yes, the dbt code's in Git, hopefully, but they don't append to the record or the log anywhere to say when we created this row or updated it, it was this piece of logic, this piece of context, this piece of code that did it.
SPEAKER_00And so I think often that pattern of logging everything is not baked in to a lot of people and they're not taught it. Is that what you'll see?
SPEAKER_01They're not. Any type of audit logs? Well, yeah. Yes. Because again, that all goes back to that feedback loop. I like to use the example of data team struggle with metrics to quantify results, right? Of what do you measure your data team on? And teams struggle, companies and teams struggle with that because of this specific pattern
SPEAKER_01that we're talking about here, right? They're not logging. They're not saving in a table that is historical and trackable and measurable of data. What happened, right? Whether that is data quality stuff of this is the number of records that were ingested during this time. This is the number of records that were cleaned out of that data set. This is so that you could track those types of pieces over time.
SPEAKER_01This is the feedback loop of You know, this was wrong, you know, because, and we got this information back from the business and going forward, this is the new deterministic pattern that we're using and it improved our data quality by 10%. Nobody has the ability to track that because they don't, because they don't track it. Right. They don't, they don't log that information. Um, but yes, that 100% is some, cause it's an afterthought. And it's a team maturity thing too, right?
SPEAKER_01Young teams, small teams don't have the history within themselves to know that that's even a thing to worry about. And they're often in a place where they're just trying to get the next thing done.
SPEAKER_00Well, they haven't been burnt, right? They haven't been hit by the bus by not logging it to then go. Actually, I had no clue who changed what and what it impacted. So then if we look at master data management, right, that matching, that survivorship, do you think it should be a system on the side? Like, let's assume we're not going to go buy one, right? We're going to build because we're a typical data engineering team today. And so... Is it a system on the side, right,
SPEAKER_00where data comes in, that system runs, does the matching survivorship, and then the data's populated and everything else reads the data
SPEAKER_01and pushes it forward?
SPEAKER_00Is it, and the answer to this one's no, is it handcrafted in every data transformation flow, right, the matching thingy? Or is it some kind of context engine that the data transformation flows can call to say, hey, I need to do some matching, almost like a service, right? Hey, this is what I got. Yeah, thank you very much. And then carry on. Which way do you do it? Are you trying to treat it as something that is hydrated in the code every time it runs? Or do you treat it as a system that does the work and stores the data?
SPEAKER_01I like to hydrate it as the data comes because that makes your code and your platform a little bit more modular so that when you do go from mastering customer to mastering supplier, then you have kind of a single pattern that has helper tables that depending on the domain that's being worked on, that's being mastered, it can look to Whether it's that JSON file or I like storing it in tables just
SPEAKER_01because I'm old and a data guy and I like tables. But store those rules in a table, again, so that you could track it over time, so that you can quantify that over time because then that table in itself has dual purpose of hydrating that code as well as being a dimension in the model. You know, in some type of query that you're going to use downstream.
SPEAKER_01And yeah, that's my two cents. I think that it's a better fit because otherwise you're basically hard coding that information into your code and it's, I'm not a fan of that.
SPEAKER_00Yeah, I think of it as an engine, right? You kind of pass it over to the engine and the engine runs it and then passes you back the result, almost like a service. But there's a good point that you just made as well, is that although you can have a relatively generic engine, the domain that you're trying to master data for actually needs more context. Yeah. If you're mastering people or organisations, you're going to rely – so let's say we're going to master people. We're going to rely on things like social security number, driver's licence, phone number, if we have to, email if we really have to.
SPEAKER_00There's a bunch of known patterns of what we can use to suggest there's a match, and then – Value or the survivorship value of it. Organization, we're going to look for some kind of government organization number, tax number, that kind of thing. We enter product, it's slightly different. Suppliers, their organizations, right? So, yeah, these kind of different rules. They're not really rules, are they? Because the rules are the algorithms or the layers that we're running. These different helpers, I think is the right word that you use, right?
SPEAKER_00Helper. Patterns for that. So again, it's not a simple problem, right? Master data management is quite complex in itself. Always complex.
SPEAKER_01Yeah, always complex. That's why we have so many platforms out there, right? That people could buy off the shelf and try to use. And then my experience over the years has been that businesses have a tendency to come back to the build piece, right? Because I was... Yeah.
SPEAKER_00I think I found that that happens because when we buy a platform, we're not buying a solution. We're buying a tool that can be configured and actually all the hard work. It helps, but it doesn't. It doesn't outsource all the effort, right? It just assists us. And, yeah, I think, yeah, I'm like you. I think kind of building it to a degree, depending on how big you are and all that usual context, right, and how many of these things you have to do and how complex it is.
SPEAKER_00Yeah.
SPEAKER_01Yeah, absolutely.
SPEAKER_00Excellent. All right. Cool. Before we close it out, has anybody got any questions?
SPEAKER_01Yeah, we've got a handful of people. Yeah. Who's got questions? Yeah.
SPEAKER_00Anything we should discuss in the last couple of minutes, given we're slightly late coming on? We'll take that as a no. All right. Well, let's see what the universe aligns with over the next month. And it's always kind of, yeah, it's always interesting when one of the awesome foursome is posting something and I'm like, oh, I'm working on that or I'll be ready for that.
SPEAKER_01It's like, yeah. It's always funny because I feel like there's cycles to this, right? Sometimes it feels like we're all working on something similar in kind of the same time range. It's funny.
SPEAKER_00Yeah, I think the Buster Data Management one freaked me out, though. Did it? I haven't done an iteration on this for quite a while, and then I was literally doing it, and then... There we go. It's a service alert in the UK. Excuse me. Don't know what it's for. Oh, wildfires. There we go. There's everybody. There's wildfires in the UK.
SPEAKER_01Yeah.
SPEAKER_00Like context, metric layers, platforms, all that other stuff. That's still a wildfire in the UK. Stuff that's been happening for a while, but yeah. Yeah, the idea that we kind of both stumbled across master data management stuff at the moment as well, that did freak me out.
SPEAKER_01It worked out, though. It gave us a good topic for today, for sure.
SPEAKER_00I have lost. Oh, there you go. I'm back again. You're back. I'm back. Yep. Excellent. All right. Well, thank you very much. And we'll catch up with you in a month's time. Sounds great. Excellent. All right. Catch everybody later.
On November 4th I ran a free live session with more than 200 people registered. Mostly analysts and folks in data-adjacent roles, with a good handful of career changers working through courses and certs. I talk to...
Apache Iceberg just shipped a new release, and Iceberg support is now native in open-source Unity Catalog. On this Live Data Friday, I was joined by Scott Haines, Staff Developer Advocate at Databricks, O’Reilly author,...
In this live session, I'm joined by Srinath Reddy B to dig into what it really costs a business when data breaks. Failed pipelines, broken golden records, and poor data quality don't just slow teams down. They quietly...
A live session with Databricks’ Scott Haines covering the reality of transitioning from corporate IC to independent consulting, special pop in comments from the great Ryan Dolley helping us to identify the breakout...
Thank you to everyone who tuned into my live video! Join me for my next live video in the app. Get full access to Chris Gambill at gambilldataengineering.substack.com/subscribe