in\_query model parameters

Modeling Workbook · Friday Demos · August 2, 2024 · 2:18

More flexibility for your data models - in\_query allows for dynamic SQL generation based upon the structure of your query. This opens up all sorts of new use cases for flexible SQL based…

Transcript

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

  1. demo2 uh small thing uh and this is also not fully real because it doesn't work in secet query views but this part is released just this inquery gesture somebody needed it uh it it's not you can't do because it's a mustache it you can't do crazy complex like logic where you render parts of SQL or not it's just a Boolean true or false um but you can do very useful things like this hooray how useful no but if you need it I guess okay uh thir demo the we've got um we released period period a while ago it used to be that you couldn't if you had a date field in the query um it would do maybe I could go find demo like but

  2. n it it wouldn't it wouldn't stack the dates it wouldn't put the dates together from the current period in previous period so now it does hoay uh so if April this is not what happened in April this is what happened four months before April everyone seems to want it to work that way so it it it works that way the only caveat calling out publicly here is it doesn't work that way if you have periods that overlap need to massage this a little more but basically like this has this dip bur implementation and it felt too weird to because like this is actual actually June's data so it' be very I don't know it people if you do overlapping periods it's kind of a niche

  3. use case I don't know if people actually that but the main line the the standard use case will now align periods uh what happens if you do like pre year same same that's non overlapping right it's yeah non overlapping it's a year ago so this is okay so that's just going to work it's just going to be like literally the overlapping thing it's just the overlap that that's weird yeah yeah um okay