
Topic-fields validation fix
Putting the finishing touches on topic-scoped fields (ie fields that only live in single-topics). Now type inference will work as expected.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
want to stick around for two more minutes and if I'm able to find the right screen here we go let's try this one all right uh over the break we actually I guess just before the break um we had a small regression with topic scope views uh which is not surprising given that topic scope views are not yet fully supported but basically the regression was that um if you saved uh any metadata onto a dimension in a topic scope view it would throw away it would basically throw away the type inference that it got from the lower from the model scoped field so as of right as of well until I merge the code I'm about to show there's really no type inference for model
scoped uh for fields and model scope views uh and so over the break I quickly fixed that to say mosope views never override the type inference uh but then since coming back uh added some code to actually start doing type inference and just wanted to show this to let people know is a kind of a teaser that topic scope views are going to start getting a little love and hopefully be um you know fully supported and released in the in the coming weeks so as you can see I've got um this order items topic I also created order items too to be able to show that I'm not doing that bug I just described but essentially uh within order items topic I have uh I'm
got the views order is a topic scope view where I'm overwriting created at to reference status uh and I'm also uh have a created at in topic this is not actually referencing a different field this is uh the SQL is just the raw SQL for the the underlying value for created at uh and then if I jump into uh new analysis for model just to show that this actually works and I go into the topic for order items uh in the orders view mind you this is decorated with this topic scope view for orders you can see that I have created at and uh just looking at the icon here you can see that this is a string is the type of this so it's
getting its type inferred from the field that it's referencing or the the data type of the underlying field and then also I have created at and topic is doing type inference this is a brand new field doesn't even exist anywhere in the you know the lower level of the model so it's doing its type inference it knows it's a date along with being a date it figured out like oh I should to give you all of the different time frames uh and then also just to show that I'm don't I still don't have that regression I have this orders where I did this uh an order items 2 topic I have the same thing I gave a label to create it at and I am
not breaking its type inference it is still a date uh date time so just to show that uh topic scope View are moving along and will soon be in production to have type inference and the ability to actually write SQL into a topic scope VI Dimension or measure