Table rename resolver

Buck Ryan · Friday Demos · March 21, 2025 · 4:31

We built a new UX for remapping renamed tables and ensure all of the content and referencing works seamlessly in Omni. Want to build the best tools out there for managing a fluid data…

Try it yourselfThe full week on docsadministrationdbtmodeling

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. Okay, I'm up screen two, I think. Okay, hopefully you're seeing Ammy and not my IDE. Um, yeah. So, uh, this is very much a work in progress. Um, but I wanted to give an update on where it is. Uh, all of the backend functionality, I believe, is now there. So, I'm going to be fully focused at this point on designs and such.

  2. Um what this feature is is a table migrator for when tables get renamed or something in the database. Uh so hopefully this demo works. Um I have these two tables misnamed table one and two. I have a query that is running against misnamed table one. And you could imagine that I'm in the database and I uh drop well actually I want to rename uh let's name table one.

  3. I think I got the syntax right. Cool. And we'll just drop table two. Then you go in and you uh do a schema refresh. And I also, you know, you'll see I have a custom dimension on misnamed table one. Um so that just happened. My great table one just appeared. Misnamed table two is now the extension that I added on here is uh now hanging out in no man's land.

  4. So, uh, what you'll have to do is make a branch. Uh, the UI will walk you through this, but for now, I'm just having to make a branch myself. And then I can click this migrate thing here. And it has detected that these two tables disappeared from the schema. And I can migrate this to great table one.

  5. And let's say I want to just delete this one. I don't care about it. Go ahead and migrate it. And we'll see what has happened is that misnamed table one is uh is back. Um and we've like pointed it to great table one. Um so we're using the renaming functionality. So we preserve the old name. We preserve the old name because like you know you might have a query running against the old name.

  6. So now if I run without cache this query should still work. Um, I don't know why it's so slow, but anyway, that's that's that. In theory, this will still work. Um, and then the uh the other table got dropped. Um, so yeah, that's that. Can I ask um first of all, that's awesome. the um so two questions.

  7. Number one, would that work to move between query views and database view and like database tables if you want to like move a CTE into the warehouse? And number two, do you think we'll be able to do this without first breaking the table like this the original first table? Uh, first question. Um, it might I mean there would need to be extra work there, but I think the fundamental way it's built would support moving a query view over.

  8. Um, that's interesting. I'll have to try that out. Um, and then what was the second question? um like do you think we'll be able to do this like because if in that use case would you be able to do that before you break the original table to say hey I've got the destination live and I can kind of hot swap this so there isn't like any downtime on the right so probably not right now the way it's built it wouldn't be able to do be done ahead of time um but uh It wouldn't be a crazy amount of work to like add that on top.

  9. I I don't think I'll be ready for the first iteration of this. Um but the sort of the fundamentals would support doing that later. Yeah, makes sense. Awesome. Thank you.