Denny Cherry and I are on a tuning mission this week, and fortunately the customer has SQL Server 2016, so we don’t have to waste a lot of time finding out problematic queries in the system. However, we were a little bit confused when we saw a graphic in the query store diagram today.
You will note that plan 44 has two durations, and even though has a single a plan id, the table to the right of the plan summary window indicates two plans. You will note that one of the plans is represented by a circle, the other a square. So what does this mean?
If the query is circle that means it completed. When the icon is a square that represents query that is cancelled, but had a plan generated for it. In this case I cancelled the query in SSMS.
We can confirm by looking in the Query Store catalog views.
The second run of the query shows as aborted and is represented as such in the query.
What about the triangle
Just stumbled across this post after I read your question: ‘If you see a triangle, that means an error in the execution.’ – https://www.sqlskills.com/blogs/erin/slowest-query-in-a-stored-procedure/