I have the following two queries which i am running on the azure kusto online query terminal
(available at this link - https://dataexplorer.azure.com/clusters/help/databases/Samples )
//okay this is lag related code.
//but we need to serialize first in some way, in other words sort it
StormEvents
| order by StartTime | extend LaggedOutput = next( State,2,"NOTHING FOUND") | project State,LaggedOutput;
//lets try coalasce
//next inside the coalesce returns a empty string and that is replaced with our replacement.
//note : I think we can forgo coalesce completely because next
//already has a default value.
StormEvents
| order by StartTime | project coalesce(next(State,2,""),"COALSESCE");
So, my question is, why bother with coalesce at all? next() already provides a default value that I can apply in this scenario?