
ignored\_views
Model configuration to wildcard out unwanted views in the model
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Red's done with that we got to make sure that gets clipped for the demos there we go hi una um sorry my daughter picked right now to come in the room I did figure out how to share my screen you guys should see uh the IDE over here and yeah we got it oh done is uh I added a new model parameter called ignored views uh which takes a list of potentially wildcarded view names and as you can see we've got users over here and save our changes users is gone uh oh this one already had users gone but if I come back and undo this then we'll see I think this workbooks tied to this model users comes back uh and uh like I
said you know you want to get rid of a bunch of views we of course oh we of course support the uh Splat syntax so are they are they going to stay in the topics so like users will stay in that topic tree for order items when we do this uh the topic tree like the Declaration that you have just below are we gonna leave users here when it's ignored up here I think that's a good thing to be clear because then you could actually revert it but I'm sort of curious does it wipe it out of the topic or anything like that I think it I actually would need Stephen to to answer that at this stage but I think it actually I mean
we could we try live but no it'll it'll stay it should stay in you I should have a validation it will that's great let's find out I it stays but then you can't query it like it doesn't show up in the workbook right like it it's in the code but yeah can you can't qu users yeah there you go you can see no such users so this is actually ignoring it and and when I did this for anuka and she indicated like the the C the customer was like oh that's great then I can hide them and so we may need to do a similar treatment for hiding views which I think would give you the the behavior that you're wanting so uh ignoring to
be clear means that it won't join through it either yes yes ignored means it does not exists it's not in the model at all and that's why we're now getting this validator warning okay but but we could hide it so that it doesn't clutter things on the left and you could still join through it that's fine uh can this exist inside a topic or is it always a universal declaration this is a model declaration it wouldn't make sense inside a topic like a topic is this right the yeah I mean the place I'm thinking about it is like I have two replicated topics and one I want to trim and is like a easier way to trim it but it doesn't it's not necessary because
you could declare it that way too I think the the main intent for this was to like figure out a way to declutter up the IDE so ANUK you had some customers that had like just tons of View files that like all match some ridiculous schema or like some patter like yeah how do you just take them out certain pipeline tools like to put like temporary tables in your database but the beauty of them is they all match kind of of like a naming pattern so it'll be like my ETL tool in process table and then like some crazy hash thing um so then you can tell Omni to ignore any view called my ETL tool in process Table after um does the addback work
like it does with field removal so could you go like minus users. Star Plus users unor name this particular approach is subtractive only so it's matched to like what we're doing with ignore schemas okay