
Custom unnested JSON field naming and better schema refresh
Pair of demos. First, some work to give more control over names for fields from nested JSON. Second, bit of tune up to the schema refresh to make it simpler.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
We'll uh we'll try this again. I figured out what the reason was. It was no bug. It was just the setup uh that I had going on did not uh show very well with the way that I was running my demo. So the the thing that happened before I had uh no label on this and so the child label defaults to actually explicitly having the the parent label.
So there was no change. Um but context here. If I create a workbook, jump into something that has some JSON in it and create a JSON field from that. And then that gets added under this group some JSON. Uh, and then if I want to do this, it automatically inherits the the parent fields name. And it's possible to override that in the chart settings, but if you just want it to always behave a certain way, you can now control that in your model by adding two Oh, some What am I doing?
This is the one that I actually created the field off of. Uh, and we've got a new parameter called skip parent label. And it's got a few possible values. Uh, these may be up for debate, but we'll start by saying always skip the parent labeling. Um, so you can see that this had some JSON fu on it.
Now it's got now it's it's actual name. So it's not getting parent blah. If I set it back to the default or never and refresh here, we should get parent blah some JSON fu, which is probably in a lot of cases not what you want to see. Um, and if I come in and edit this field and I say edited on the child fields label, I would expect that to at least take away the parent label, but by default, we don't do that.
Uh, and so we've got uh explicit child label. I hope this is what I called it. If not, it'll complain and tell me what the valid values are. And now that field, because it has an explicit label on the child, will not assign the parent labeling. So, um, this isn't docked yet, so I wanted to give a demo so that people could see it's available and how to use it.
Uh, I wanted to show one other real quick enhancement that we made this week. Um, folks may have noticed recently that we added some stuff to the refresh schema form. And uh prior to a few days ago, there was also another button here which was causing some confusion in support which was there to speed up schema refreshes.
It said it was a checkbox that said skip SQL revalidate or something you know obscure like that. Um, and what that checkbox did was it made it so that we wouldn't go through and look for basically the presence of select star from things in SQL views and then recomputee the fields on those SQL views in case uh the parent SQL had changed with or the the table that they're selecting from had changed with the uh with the schema refresh.
So this week I removed that checkbox uh and pushed the SQL revalidation step into a background task that always happens but should never slow down uh schema refresh. So schema refresh should still be fast even if you have thousands of SQL you know select star from SQL views in your models uh will still be fast to do the SQL revalid or to do the schema refresh and the SQL revalidation will still happen and there isn't a confusing checkbox on the schema refresh form.
So little enhancement there and um planning some more uh you know small cleanups around that schema refresh process to to kind of speed things, make them more intuitive uh and and uh just you know little quality of life enhancements here. So that's it for