Extends

Jamie Davidson · Friday Demos · December 22, 2023 · 2:02

The launch of `extends: `in the data model, improving code reusability and model depth

Transcript

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

  1. um and then I've got a um another feature that uh Stephen Conrad and I uh were collaborating on that we shipped that um really is kind of continuation of our sort of mental M so this is um this is live now um we basically you know we sort of the core of omni we have uh basically multi-layered model where You' got you know schema model and shared model workbook model all of which basically compose on top of each other um through what we call sort of extensions um looker would call this something like extensions or refinements where you basically change change things and compose them in place um what we didn't support though was for a given layer to effectively uh extend objects that are

  2. already within that layer so if you've got a field or a view or something that you want to take and use in a different kind sort topic where you want to curate it and and you know reuse most of it but but change the label or change the fields that are present um to so we've now got uh the ability to to do this so just like a simple example here's just a field that's basically extending this sales price field here and relabeling it uh explicitly and so to show you what that looks like here's the workbook where you can think of it almost like another layer inside uh inside the model it should work in a recursive way where if you you depend on

  3. sales price and the sales price depends on another field it should all all work whoa oops um I think I pressed the wrong wrong field but you can see we've got gross receipts that is just it's just referencing the sales price field but it's basically you know relabeled that sales price field to effectively in the same way that you could relabel it in uh a workbook model for example or inside a you know a query model or the like and so for all of our modeled objects this this should work it's still brand new so if you see anything weird with it please please let me know but uh but yeah this should uh should be live now