Fill gaps in any date series

Cathy Lennon · Friday Demos · July 3, 2025 · 3:44

Now any time-series can dynamically fill missing dates between the min and max in the data set.

Transcript

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

  1. Okay. Um I'm going to demo something real quick. Um so this isn't out yet, but hopefully um next week. So currently we have a restriction on date fill that you need a filter that provides the bounds. Um so I'm working on getting rid of that restriction. So you should be able to if you've got some kind of query go and do a little missing row.

  2. So this is month. Um and what it'll do is it'll fill in the rows in between. So it finds the max and the min value in your query and then just fills in any missing values in between. Um and everything else should work as before. It should just be able to do that. Um I think that's it.

  3. Uh Kathy question on that one. Did you did you end up doing the uh if there's a bound on one side like if I do before today or or something like that? Yeah, I can show you that too. Um, so right if you want to add that you can do so let's say you want to go from the minimum but you want it to go all the way up to today then you have to add a filter.

  4. So you would add a filter that says for example you want all the values that are before today and then it'll give you from the minimum value up to today. Um and I I left existing behavior for on or after. So our on or after filter you could already fill with um what it would do is it would take the start value you provided and go up till the current value.

  5. Um so just to not change existing behavior that's how it works. But if you want you can you can tweak the end uh this way. Sick. Thanks Kathy. So uh we should think about turning that on by default. Is it on by default? Maybe you said that, Kathy. Is it not on? Do you still have to do the fill button?

  6. Yes. So, you're saying if you have a query, um, just always fill in the dates. Maybe. Okay. I think there's a decent argument that it's the right choice. Okay. Yeah. Yeah, I mean easy enough to do as long as that's uh Yeah, we should we should think about it because it I I think it's like more correct usually.

  7. Is there performance pro like implications? Yeah, there probably is. Yeah. Yeah, there always is. Um depending on the date, the dialect we do it with recursive CTE which you know can impact things depending on how many intervals you have. Um but we can always tweak that depending on the type of film, the number of intervals and stuff too.

  8. I also think the type the chart type matters like if it's a table um that can be different than like a line or or like a that's true. It's just about which one is the more correct default and I think it's usually actually the filled set but we should think about it. All righty. One more question. Um does the does the SQL generated get gnarly too when you fill in missing dates?

  9. Yeah, it gets kind of gross. Yeah, I would say probably don't default it to then. Um, okay.